Tell us what’s happening:
Hi, I don’t really know whats wrong with the code, i’ve ran this code in CodePen and says that it’s wrong too.
Your code so far
// Setup
var lastNameLength = 0;
var lastName = "Lovelace";
// Only change code below this line
lastNameLength = lastName.lenght;
console.log(lastNameLenght);
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
.
Challenge: Find the Length of a String
Link to the challenge: