Basic JavaScript - Understanding Case Sensitivity in Variables

**i am new to JS please how do i define
i know how to camelCase but i=how do i define **

// Variable declarations
var StUdLyCapVaR;
var properCamelCase;
var TitleCaseOver;

// Variable assignments
STUDLYCAPVAR = 10;
PRoperCAmelCAse = "A String";
tITLEcASEoVER = 9000;

I’ve edited your code 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 (').

1 Like

I’m sorry, but I don’t understand your question.

Camel case means that you combine all the words and all letters are lowercase, expect for the first letter of each word, and the first letter or the new name is also lower case.

So

student data => studentData
last log entry => lastLogEntry
lowest common multiple => lowestCommonMultiple

In the code above, two of the variables are not proper camel case. You should convert them to camel case.

1 Like