Declare variables

Declare variables
0

#1

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…”


#2

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


#3

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;


#4

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.


#5

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

thanks


#6

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

var studlyCapVaR;

#7

yeah! you’re right! thanks!