Tell us what’s happening:
Okay so I don’t get why the very first line of code is set to zero, how does this relate?
Is it a default? Should I have known about this?
And why am I not seeing anything come up although there are no alerts
Your code so far
// Setup var lastNameLength = 0; var lastName = "Lovelace"; // Only change code below this line lastNameLength = lastName.length;
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36 Edg/88.0.705.56.
Challenge: Find the Length of a String
Link to the challenge: