Skip to main content
InterviewHubPRO
Section Overview
Q163

Question 163 of 536

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

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

What is a RegExp object

junior LevelCode ExampleHTTP & REST APIs

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+/