๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ ๐ข๐ฝ๐ฒ๐ฟ๐ฎ๐๐ผ๐ฟ๐ ๐๐ ๐ฝ๐น๐ฎ๐ถ๐ป๐ฒ๐ฑ
You need operators to work with data in JavaScript.
Arithmetic Operators
- multiplies numbers.
- / divides numbers.
- % finds the remainder.
- ** calculates exponents.
- ++ adds one to a value.
- -- subtracts one from a value.
Assignment Operators
- = assigns a value.
- += adds and assigns.
- -= subtracts and assigns.
- *= multiplies and assigns.
- /= divides and assigns.
- %= finds remainder and assigns.
Comparison Operators
- == checks if values match.
- === checks if value and type match.
- != checks if values differ.
- !== checks if value or type differ.
checks if the left side is bigger.
- < checks if the left side is smaller.
= checks if the left side is bigger or equal.
- <= checks if the left side is smaller or equal.
Logical Operators
- && (AND) needs both sides to be true.
- || (OR) needs one side to be true.
- ! (NOT) flips true to false.