Basic JavaScript (7/111) | Understanding Case Sensitivity in Variables | freeCodeCamp

Published: 10 July 2020
on channel: Stral Tech
1,380
14

Basic JavaScript (7/111) | Understanding Case Sensitivity in Variables | freeCodeCamp

Full playlist 👉    • Basic JavaScript (1/111) | Comment Yo...  

"In JavaScript all variables and function names are case sensitive. This means that capitalization matters.

MYVAR is not the same as MyVar nor myvar. It is possible to have multiple distinct variables with the same name but different casing. It is strongly recommended that for the sake of clarity, you do not use this language feature.

Best Practice
Write variable names in JavaScript in camelCase. In camelCase, multi-word variable names have the first word in lowercase and the first letter of each subsequent word is capitalized.

Examples:
var someVariable;
var anotherVariableName;
var thisVariableNameIsSoLong;

Modify the existing declarations and assignments so their names use camelCase. Do not create any new variables."

https://www.freecodecamp.org/learn


Watch video Basic JavaScript (7/111) | Understanding Case Sensitivity in Variables | freeCodeCamp online, duration hours minute second in high quality that is uploaded to the channel Stral Tech 10 July 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,380 times and liked it 14 visitors.