InterviewHubPRO
Section Overview
Q163

Question 163 of 521

Part 3: DOM, Event Flow, Timers & Browser APIs (104 - 173)

31%
JavaScript Internals (521 Qs)•Part 3: DOM, Event Flow, Timers & Browser APIs (104 - 173)

What is a RegExp object

RegExp object is a regular expression object with predefined properties and methods. Let's see the simple usage of RegExp object,

javascript
  var regexp = new RegExp("\\w+");
  console.log(regexp);
  // expected output: /\w+/