Naming Convention for JavaScript

Naming Convention for JavaScript


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


In programming camelCase formatting for variable names looks like this:

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


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


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