Challenge with the lenght script on JS

Tell us what’s happening:

Your code so far

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

// Only change code below this line

lastNameLength = LastName ;
console.log(lastName.length) ;

Your browser information:

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

Challenge: Find the Length of a String

Link to the challenge:

JavaScript is case-sensitive. This means, for example, counter and Counter are not the same. If you do this

var number = 10;
var y = number;

It works fine. But if you do this

var number = 10;
var y = Number; 

you got a problem because Number is not defined (only the lowercase number is defined and has a value of 10).

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