Any suggestion please

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


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

// Only change code below this line

lastNameLength = lastName;
var ln = lastName.length ;
var lnl = lastNameLength.length;
console.log(ln);


Your browser information:

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

Challenge: Find the Length of a String

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


This variable needs to hold the length of the last name.

1 Like

Hi @sumanghimire79 !

Welcome to the forum!

You are overthinking it :grinning:

Your answer only needs to be one line of code.

Reread the directions again and assign the length of the lastName variable to lastNameLength

1 Like

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