operators that operate on numbers. ๐ง under construction -> unary ops
Last updated 2 years ago
Was this helpful?
JS โฉ statement โฉ expression โฉ operator โฉ arithmetic โฉ
(operator) that operate on numbers.
unary๏ผ+, -, ++, --
binary๏ผ +, -, *, /, %, **
+
-
*
/
%
**
bitwise๏ผ ~, ^, |, >>, <<, >>>
~
๐ table of operators
arithmetic operators do not allow to mix BigInt and Numberโ
in an arithmetic operation๏ผ
non-numeric operands that cannot convert to numbers convert to .
if either operand is (or converts to) , the result is (almost always) .
unary arithmetic operators
bitwise operators
binary arithmetic operators
โ
๐พ - modulo
๐พ
โ๏ธ
โ ๏ธ
JavaScript: The Definitive Guide โฉ 4.8