1.

Which one is not regular expression object method?(a) test()(b) exec()(c) compile()(d) each()This question was posed to me in class test.I want to ask this question from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (d) each()

Easiest EXPLANATION: compile(), toString(), exec(), test() are some of the regular expression methods in JAVASCRIPT. Compile() is method that compiles regular expression. Test() method is for matching in a STRING. Exec() is also for matching in a string but it returns FIRST match. toString() method returns string VALUE.



Discussion

No Comment Found

Related InterviewSolutions