Literal Expressions
- Strings:
"How are you?",'How are you?' - Numbers:
40,30.123 - Arrays:
[1, 2, "array"] - Objects:
{ one: 1, two: 2 } - Booleans:
true,false
Operators
Arithmetic Operators
- Addition (
+)
- Subtraction (
-)
- Division (
/)
- Division Remainder (
%)
- Multiplication (
*)
Comparisons
- Equal to (
==)
- Not equal to (
!=)
- Greater than (
>)
- Greater than or equal to (
>=)
- Less than (
<)
- Less than or equal to (
<=)
Logical Operators
- and (
&&)
- or (
||)
- not (
!)