// 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;
It means variables are case sensitive in Javascript, var name;
is different from var Name;
. They are two separate variables. So, let’s say that you’ve declared a variable price
, now if you want to assign it a value, you’ll use the exact same name, price
, not something like pRice
or Price
.
Hi!
Please describe your question. For now, not sure what kind of help do you need.
In general, Javascript variables are case-sensitive, so if we have -
var ab;
var AB;
var Ab;
var aB;
Look at the tests for what the challenge expects. Basically, everything should be changed to camelCase (e.g. var ILOVECAKE
→ var iLoveCake
).
As a broader point, declaring something with var SoMeVaR
and then assigning something as someVar = 1
will create two variables, not one, and at least one (the one “accidentally” declared without the var
keyword) will exist in the global scope. This is known as “polluting” the global scope and is generally Considered Harmful.