Static variable (Useful tip)

Define static variables using properties you add to a function object.

Static variables are also known as class variables.

If we want to create some class variables, we need to add properties to the constructor function object.

If we have made our own constructor function, we can add our own class variables to it.

We can also add class variables to the built-in objects in some implementations.

These are called static variables because they are not associated with a local instance.

See also:Function object properties