Find the Length of a String 8

Find the Length of a String 8
0

#1

Tell us what’s happening:
I am not able to find the length of the string.I couldnt find any error

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.length;


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/find-the-length-of-a-string


#2

It’s a silly FCC bug. Your code is valid, but it won’t pass unless you put a space between = and 0 in
var lastNameLength =0;


#3

thanks very much. :slight_smile: