Please ensure you are familiar with our JavaScript styleguide. This guide builds on top of that document and aims to advise on the semantic naming of variable, objects, properties, classes and functions.
From Mozilla's JavaScript Glossary
In the context of a constructor, an instance of that constructor. Otherwise, an unordered collection of properties. To be more specific, an object is an associative array, where the keys are property names, and the values are property values. All objects are derived from Object, including arrays, and Object itself is also an object.
From Mozilla's JavaScript Glossary
A placeholder where a value can be stored. In JavaScript, variables are actually properties. Variables are typically accessed through identifiers. See also global variable and local variable.
var i = 0
, count = 0
, users
From Mozilla's JavaScript Glossary
A body of code that can be called by other code or by itself, or a variable that refers to the function. When a function is called, arguments are passed to the function as input, and the function can optionally return an output. A function is also an object.
JSON has properties and values. Values can be primities, objects or arrays.
User-defined functions and methods are named in the same style as variables; however they are usually verbs-phrases instead of noun-phrases.
should work, too:</p>