Basic JavaScript - Find the Length of a String

Tell us what’s happening:
Describe your issue in detail here.

Help I can’t see where I did wrong here…

Your code so far

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Challenge: Basic JavaScript - Find the Length of a String

Link to the challenge:

Typo here. .length not lenght

1 Like

Thanks @hbar1st I finally got through, my problem is that I rush these exercises and hardly pay attention to the small things that count! Appreciate the support, this course is awesome.

1 Like

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