Tell us what’s happening:
Describe your issue in detail here.
i am trying to use camelCase method to declare those variable, but they keep saying me that
studlyCapVar
should be defined and have a value of
10
.
properCamelCase
should be defined and have a value of the string
A String
.
titleCaseOver
should be defined and have a value of
9000
.
Your code so far
// Variable declarations
var studlyCapVar;
var properCamelCase;
var titleCaseOver;
// 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/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32
Challenge: Understanding Case Sensitivity in Variables
And i don’t know if your coded ended up looking like this:
// Variable declarations
var studlyCapVar;
var properCamelCase;
var titleCaseOver;
// Variable assignments
var studlyCapVar = 10;
var properCamelCase = "A String";
var titleCaseOver = 9000;
but you only need to declare a variable once. Those var’s on the lower variables should not be there
i just started learning JavaScript. i think we dont need the keyword “var” to assign value to a variable . we use “var” only when we want to declare a variable right ?
Yup, just making sure you knew based on the other posted code. You can declare a variable with var and not assign it a value, and assign it later without the var.
I think after this test they teach you about let which wont allow you to just re declare a variable like var will.