Question: I tried splitting the string, but it would not let me convert it over to html 3. Use indexOf0 and substr0 or substring0 to divide

 I tried splitting the string, but it would not let me

convert it over to html 3. Use indexOf0 and substr0 or substring0I tried splitting the string, but it would not let me convert it over to html

3. Use indexOf0 and substr0 or substring0 to divide your name into two strings-firstname and lastname We're going to use some basic built-in string functions to manipulate a string: your name. Modify the code in the js/hw2SplitString.js file to output the first and last name separately into the page below. Your code should work for any name entered. See the JS file for more on what input validation is expected is my full name. Split my name! Placeholder first name is my first name Placeholder last name is my last name

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!