I have always wondered when to use identifiers (for example, functions) with capital first letter instead of camel case. I always write my JS in camel case like thi
The convention is to name constructor functions (i.e. functions that will be used with the new keyword) with starting capital.
new
function MyType(simpleVar) { this.simpleVar = simpleVar; } myObject = new MyType(42);