- null – a special keyword denoting a null value.
- Boolean – a logical entity that consists of either a true or false value.
- Number – a set of numerical digits that represent a number.
- String – a set of zero or more characters.
You can use variables as symbolic names for values in application. The names of variables, is called identifiers. Variables can be declared with keyword “var”.
You can create read-only, named constant with “const” keyword. A constant cannot change value through assignment.
These are fixed values, not variables, that you literally provide in you script.
coffees = [
The boolean type has two literal values “true”, “false”.
An object literal is a list of zero or more pairs of property names and associated values of an object, enclosed in curly braces.
A string literal is zero or more characters enclosed in double or single quotation marks.