-
Which one is not regular expression object method?
-
- each()
- compile()
- exec()
- test()
- None of these
Correct Option: A
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.