Basic JavaScript - Find the Length of a String

Tell us what’s happening:

excuse me, i did the test alone but i had a mistake after that i watched the video which help me, but on the video i saw the same thing as mine

Your code so far

// Setup
let lastNameLength = 0;
const lastName = "Lovelace";

// Only change code below this line
lastNameLength = lastName.lenght;
console.log(lastNameLength)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 OPR/111.0.0.0 (Edition MSI)

Challenge Information:

Basic JavaScript - Find the Length of a String

hi and welcome to the forum.

Please write length not lenght

1 Like