Length of a string

Hello, i’m not able to find the error in this

// Example
var firstNameLength = 0;
var firstName = "Ada";

firstNameLength = firstName.length;

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

// Only change code below this line.

lastNameLength = lastName.lenght;


i am getting this error

// running tests
lastNameLength should be equal to eight.
You should be getting the length of lastName by using .length like this: lastName.length.
// tests completed
1 Like

Spelling matters.

3 Likes