𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀 𝗜𝗻 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁
JavaScript operators are symbols. They perform operations on values and variables.
You use these types of operators:
- Arithmetic
- Assignment
- Comparison
- Logical
Arithmetic operators work on numbers. Numbers in these operations are operands.
Arithmetic operators include:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Remainder (%)
- Increment (++)
- Decrement (--)
- Exponentiation (**)
Assignment operators give values to variables.
Common assignment operators:
- Standard assignment (=)
- Add and assign (+=)
- Subtract and assign (-=)
Source: https://dev.to/vidhya_murali_5aabe7784bd/operators-in-javascript-50f8