exponentiation (**)

🚧 under construction

JSoperatorarithmetic ⟩ exponentiation (**)

(ES2016) 👉 table of operators

a ** x    // exponentiation

** operator

  • precedence relative to the unary negation operator is not defined

  • explicitly use parentheses when mixing - with **

  • equivalent to Math.pow() (except ** also accepts BigInts)

👉 table of operators

Last updated