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 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
Get step-by-step solutions from verified subject matter experts
