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

preview_player
Показать описание
Basic JavaScript (7/111) | Understanding Case Sensitivity in Variables | freeCodeCamp

"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."

Рекомендации по теме
Комментарии
Автор

Any questions or suggestions comment below ⬇️
I'll do my best to answer your questions and include your suggestions in my next video! 😉

straltech
join shbcf.ru