What is wrong? **Tell us what's happening:**

Tell us what’s happening:

Your code so far


// Setup
var lastNameLength = 0;
var lastName = "Lovelace";

// Only change code below this line

lastNameLength = 8;
console.log(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.190 Safari/537.36.

Challenge: Find the Length of a String

Link to the challenge:

you hardcoded the value of the variable, instead you need to use the length property to give it a value

OMG) Thank you so much!!! It is so easy to slove …

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.