Most Powerful Open Source ERP

Guideline JavaScript Constructor Starts With Captial Letter

Consistent Javascript patterns.
  • Last Update:2017-04-05
  • Version:001
  • Language:en

JavaScript Constructor Starts With Captial Letter

A constructor function starting with new should always start with a capital letter.

Good Example:

var test = new Application();

Bad Example:

var test = new application();