1.

The class that represents the regular expressions is ________(a) RegExpObj(b) RegExpClass(c) RegExp(d) StringExpThe question was asked in an international level competition.My doubt stems from Augmentation of Classes topic in division Classes and Modules in JavaScript of JavaScript

Answer» CORRECT answer is (c) REGEXP

The explanation is: REGULAR expression is an object that DESCRIBES a pattern of characters. The JavaScript RegExp class REPRESENTS regular expressions, and both string and RegExp define methods that use regular expressions.


Discussion

No Comment Found

Related InterviewSolutions