Declare variables

Declare variables


hi! I wrote this:
var studlyCapVaR = 10;
var properCamelCase = “A String”;
var titleCaseOver = 9000;

but the answer is wrong… why happened that??

the console said me :
“…studlyCapVar is defined and has a value of 10
Cannot read property ‘length’ of null…”


You did not post all of the code, but in line above, studyCapVaR is not written in camelCase


hi! thanks for help me…

this is all my answer

// Declarations
var studlyCapVaR;
var properCamelCase;
var titleCaseOver;

// Assignments
studlyCapVaR = 10;
properCamelCase = “A String”;
titleCaseOver = 9000;


In the first line, you have the same as under the Assignments section. In both places studlyCapVaR is not written in camelCase. Correct it in both places, and you will pass this challenge.


why my variables dont writte in camel case?, perhaps it not is when I writte the first letter is in lowercase?



In the code you wrote below, that capital “R” at the end is the problem. It should be lower case.

var studlyCapVaR;


yeah! you’re right! thanks!