Error in lesson correction

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

When I run the test, it says that ‘studlyCapVar’, ‘properCamelCase’ and ‘titleCase Over’ “should use camelCase in both declaration and assignment sections”, although they clearly are already. Is this an error? How do I skip the exercise then?

Your code so far

// Variable declarations
var studlyCapVar;
studlyCapVar = 10;
var properCamelCase;
properCamelCase = "A String";
var titleCaseOver;
titleCaseOver = 9000;

// Variable assignments
studlyCapVar = 10;
properCamelCase = "A String";
titleCaseOver = 9000;

Your browser information:

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

Challenge: Understanding Case Sensitivity in Variables

Link to the challenge:

The message isn’t that clear, but you’ve gone outside what you were supposed to do so it confused the tests. We can’t write tests to account for every … single … possible … deviation.

Your instructions were:

Modify the existing declarations and assignments so their names use camelCase.

You’ve done that but you’ve also created duplicate assignments. When I remove the duplicates, the test passes for me.

I don’t know why that screws up the test (I didn’t write it and am too tired to look it up) but just stick to the instructions.


Ok, I got it, thanks!

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