Basic JavaScript - Find the Length of a String

Tell us what’s happening:
Describe your issue in detail here.
i keep running my code and it says should be equal to 8 and its equal to 8 but my code seem incorrect dont know why

Your code so far

// Setup
let lastNameLength = 0;
const lastName = "Lovelace";
lastNameLength = lastName.length;
// Only change code below this line
lastNameLength = lastName;

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Find the Length of a String

Link to the challenge:

Your issue is that you are overwriting the value of lastNameLength here

You will need to remove that incorrect answer and make sure to only add your answer where the directions say to

Once you fix that, then it will pass

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