A variable is a name that can reference a specific value. Variables are declared using var followed by the variable's name.
Here's an example:
var example;
The above variable is declared, but it isn't defined (it does not yet reference a specific value).
Here's an example of defining a variable, making it reference a specific value:
var example = 'some string';
# NOTE
A variable is declared using var and uses the equals sign to define the
value that it references. This is colloquially known as "Making a variable
equal a value".
Here's an example:
var example;
The above variable is declared, but it isn't defined (it does not yet reference a specific value).
Here's an example of defining a variable, making it reference a specific value:
var example = 'some string';
# NOTE
A variable is declared using var and uses the equals sign to define the
value that it references. This is colloquially known as "Making a variable
equal a value".