Help/Explain question 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Help/Explain question 2

Declare a variable named splitName, and set it equal to the fullName split into two separate objects in an array using the split method. In other words, splitName should equal [“FirstName”, “LastName”] when printed to the console. Print splitName to the console.

7th Apr 2018, 7:13 AM
Coder1995
Coder1995 - avatar
1 Answer
0
you should Declare "FirstName" and "LastName" eg. var FirstName = "Herold"; var LastName = "Omecillo"; var FullName = FirstName + LastName; then The Split name var SplitName = [FirstName,LastName] thats about it... Hope This Helps
7th Apr 2018, 1:52 PM
Herold Bryan Omecillo
Herold Bryan Omecillo - avatar