Naming Convention for JavaScript

Naming Convention for JavaScript
0

#1

Here you will get an overview of the different code case that are used widely used.

camelCase

In programming camelCase formatting for variable names looks like this:

var camelCase = "lower-case first word, capitalize each subsequent word";

PascalCase

Another form of this case, often referred to as PascalCase or just CamelCase, and differs by having each word in the variable capitalized like so:

var PascalCase = "upper-case every word";

snake_case

Another popular code case for variable naming called snake case involves sperating each word with underscores in this manner:

var snake_case = "lower-case everything, but separate words with underscores";

#2