Question: Need help. Write a statement that creates a RegExp object that remembers the first and last name, but does not remember the title. Using the

Need help. Write a statement that creates a RegExp object that remembersNeed help.

Write a statement that creates a RegExp object that remembers the first and last name, but does not remember the title. Using the RegExp object's exec0 method, assign the result variable with the remembered first and last name of the string userName var userName = "Dr. Greg House"; // code will also be tested with "Mr. Howard wlowitz. 3 Your solution goes here 5 console.log(result[1]+"" + result[2]): 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!