Basic JavaScript: Find the Length of a String

Tell us what’s happening: i could not understand how to write the code for this test.

Your code so far


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

firstNameLength = firstName.length;// 3

// Setup
var lastNameLength = 0;
var lastName = "Lovelace";
"Lovelace".length;// 8

Your browser information:

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

Challenge: Find the Length of a String

Link to the challenge:

You should write VARNAME.length instead of VARIABLE.length; (ex: lastName.length;)

also, remember to assign to lastNameLength, right now it is just 0