javascript naming conventions code example
Example 1: javascript Name convention
// camelCase
//The general rule is to start variable, function and method names
//with a lowercase letter, class and object names with a capitalized letter,
//and constants are typically all caps.
//Follow these conventions, and your scripts will
//be consistent with what others are doing, and much easier to understand.
Example 2: js file naming conventions
File names must be all lowercase and may include underscores ( _ ) or dashes ( - ), but no additional punctuation.