Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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]): 4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started