There are four naming conventions in programming. We will focus on two following fundamental ones while using Javascript.
camelCase
camelCase starts with a lowercase letter. Every new word starts with a capital letter. Commonly used in JavaScript, Java, C# and many other high-level programming languages. Review the following examples.
//method declaration
void sendEmail()
//variable declaration
var totalAmount;
PascalCase
Every word starts with a capital letter, including the first letter. PascalCase is very popular in C#, .NET, and Java programming languages.
//method declaration
void SendEmail()
//variable declaration
var TotalAmount;