Understanding Case Sensitivity in Variables-cannot understand why my answer is wrong

Tell us what’s happening:

Your code so far
// Declarations

var studlycapVaR;

var properCamelCase;

var TitleCaseOver;

// Assignments

studlycapVar = 10;

properCamelCase = “A String”;

titleCaseOver = 9000;


// Declarations
var studlycapVaR;
var properCamelCase;
var TitleCaseOver;

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/understanding-case-sensitivity-in-variables

You need to change these declarations to camelCase as well. Since variables are case sensitive, this would also throw an error in your future code since your variable declarations and variable assignments don’t match.

Also, I believe the first one is actually studlyCapVar.

// Declarations

var studlyCapVar;

var properCamelCase;

var titleCaseOver;

// Assignments

studlyCapVar = 10;

properCamelCase = “A String”;

titleCaseOver = 9000;

Thanks… I forgot to change in the declaration as well. The above answer helped me to pass.

1 Like