Tell us what’s happening:
what’s happening is I used the code the way the challenge told me to, but I couldn’t pass the challenge for some reason. maybe a bug in the challenge…
Your code so far
// Example
var firstNameLength = 0;
var firstName = "Ada";
firstNameLength = firstName.length;
// Setup
var lastNameLength = 8;
var lastName = "Lovelace";
// Only change code below this line.
lastNameLength = lastName.length;
The variable was already set to 0 when the challenge starts. There is a comment that says “Only change code below this line”.
Your code should technically work, but test you fail is also checking that you did not change the declaration in the setup. I have created a PR (#35940) which creates an additional test which validates the user has not modified anything in the original setup. Also, I modified the last test to only check that .length was used in the solution. These two changes should make it easier to understand what should and should not be changed.