1.

What is the purpose of the RegExp method test()?(a) Tests for a match in its float parameter(b) Tests for a match in its string parameter(c) Tests for a match in its integer parameter(d) Test for a match in nodeThe question was posed to me in an internship interview.I want to ask this question from External JavaScript and PHP topic in portion Caching, Debugging and Animation of JavaScript

Answer»

Right OPTION is (b) Tests for a match in its STRING parameter

Easy explanation: RegExp stands for regular EXPRESSION which is an object that describes a pattern of CHARACTERS.



Discussion

No Comment Found

Related InterviewSolutions