Find the Length of a String - Problem

Find the Length of a String - Problem
0

#1

Tell us what’s happening:
This look like a easy code,but i have a problem.I think i need only last line of code and add .lenght … but like i sad i have a problem. Please help?

Your code so far

// 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;


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36.

Link to the challenge:


#2

Should be .length :slight_smile:


#3

ooh writing problem…thank you Ben