What am I doing wrong here? all the other ones before this were easy. I have gotten over the first two hints at the bottom. The last hint I am currently trying

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;
lastNameLength = 8;
var console.log(lastName.length)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

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.

I’m not sure what’s going on here, but you should use the length property of the string to set this variable.

You are not supposed to set the length manually, you need to use the length property on lastName and assign the result to lastNameLength

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