Q. What is the difference between test() and exec() methods of RegExp?

RegExp के परीक्षण() और exec() तरीकों के बीच क्या अंतर है?

A
test() returns a boolean, exec() returns an array
B
exec() returns a boolean, test() returns an array
C
Both return booleans
D
Both return arrays

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment