Home » HTML » Html miscellaneous » Question
  1. Which one is not regular expression object method?
    1. each()
    2. compile()
    3. exec()
    4. test()
    5. 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.



Your comments will be displayed only after manual approval.