Basic JavaScript - Understanding Case Sensitivity in Variables

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Variable declarations
var StUdLyCapVaR;
StUdLyCapVar = 10;
var properCamelCase = "A String";
var properCamelCase;
properCamelCase = camelCase;
var TitleCaseOver;
TitleCaseOver = titleCaseOver;
var TitleCaseOver;
TitleCaseOver = camelCase;

// Variable assignments
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/ Safari/537.36

Challenge: Basic JavaScript - Understanding Case Sensitivity in Variables

Link to the challenge:

First off, welcome to the forum! I am not sure where you are getting some of your code from. You seem to be misunderstanding the goal of this challenge.

So, the directions ask you to
"Modify the existing declarations and assignments so their names use camelCase.

Do not create any new variables."

In this challenge camelCase is explained as “In camelCase, multi-word variable names have the first word in lowercase and the first letter of each subsequent word is capitalized.”

Your goal for this is to make sure all variables are camelCase, and the challenge gives you an example of what that looks like

var someVariable;
var anotherVariableName;
var thisVariableNameIsSoLong;

You should not be duplicating the variables, or assigning them to anything. All you need to do is make them camelCase

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