What do i do next?

Tell us what’s happening:

Your code so far


// Variable declarations
var StUdLyCapVaR= 10 + camelCase;
var properCamelCase="A String" + camelCase;
var TitleCaseOver= 9000 + camelCase;
var camelCase
// Variable assignments
STUDLYCAPVAR = camelCase;
PRoperCAmelCAse = camelCase;
tITLEcASEoVER = camelCase;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Understanding Case Sensitivity in Variables

Link to the challenge:

you are using variables before they are declared

what do you mean. **

code executes top down, you can’t use a variable before it’s declared

ik that
i got this so far

// Variable declarations

var StUdLyCapVaR;

var properCamelCase;

var TitleCaseOver;

var camelCase;

var STUDLYCAPVAR;

var PRoperCAmelCAse;

var tITLEcASEoVER;

// Variable assignments

STUDLYCAPVAR = camelCase;

PRoperCAmelCAse = camelCase;

tITLEcASEoVER = camelCase;

StUdLyCapVaR= 10;

properCamelCase="A String";

TitleCaseOver= 900;

…please read again what you are supposed to do in the challenge. You just have to edit the lines, you don’t have to declare dozens of variables.

but i did …

CamelCase is a way to write variables that have multiple words.

thisvaribale properly written in camel case is thisVariable

You have to declare 3 variables, one of them is studlyCapVar
In your example code you declare 7, none of them is studlyCapVar.

CamelCase is a way of writing variables.
ForExampleThisLineIsWrittenAsCamelCase.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.