Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedNeed 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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+nk so that p( B(k)) Answered: 1 week ago

Answered: 1 week ago