You should not change the variable declarations in the // Setup section

As the title You should not change the variable declarations in the // Setup section. But I don’t understand, what part should I change in my code?

Your code so far


let lastNameLength = 0;
let lastName = "Lovelace";
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/97.0.4692.99 Safari/537.36

Challenge: Find the Length of a String

Link to the challenge:

Reset everything.
Only change the code below this line you will see.

// Only change code below this line
lastNameLength = lastName;

You can change lastNameLength = lastName; .

Thank you @Exotic! I just passed it

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