Basic JavaScript - Find the Length of a String

Tell us what’s happening:
The letter “L” in my laptop seems to be causing me trouble, I wrote exactly the same line of coding but when I write the solution myself doesn´t work and the “L” shows up un

Your code so far
M
lastNameLenght = lastName.lenght;

// Setup
let lastNameLength = 0;
const 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/107.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Find the Length of a String

Link to the challenge:

hi there, can you rephrase the question? I didn’t understand it.

Do you mean that the “l” is underlined, like this:
image
You may also see ReferenceError: lastNameLenght is not defined in the console window at the bottom.

That happens when the interpreter is trying to warn you that you may have misspelled something. Take a closer look at how you spelled “length” in lastNameLength and lastName.length in the image above.