operators that operate on numbers. 🚧 under construction -> unary ops
Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩
(operator) that operate on .
:+, -, ++, --
: +, -, *, , ,
+
-
*
: , ^, |, >>, <<, >>>
table of operators
arithmetic operators do not allow to mix BigInt and Number
in an arithmetic operation:
non-numeric operands that cannot convert to convert to .
if either operand is (or converts to) , the result is (almost always) .
binary arithmetic operators
add/concate (+)
exponentiation (**)
division (/)
remainder (%)
modulo(a, b) - modulo
mod(a, b)
remainder vs. modulo vs. mod
non-numeric operand
JavaScript: The Definitive Guide ⟩ 4.8
/
%
**
~