why the test is not running

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

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.128 Safari/537.36.

Challenge: Find the Length of a String

Link to the challenge:

Welcome 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.


Looking at your code, something appears off here:

The built-in console should give you a useful error message.

where you have written lastName.lenght this should be spelt lastName.length then your code should work as intended

You have a typo. with lastName.lenght instead of lastName.length :slight_smile:

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