javascript array naming 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 database field naming conventions
Two choices:
> use camelCase everywhere, but keep using snake_case only for
server-generated attributes
> always manually convert to camelCase after you get the data
back from the network, and use camelCase everywhere.
If you have to pick a global convention on both sides,
JavaScript should win - ie, camelCase.