Exponentiation ** (power) operator in Javascript

added by JavaScript Kicks
7/30/2019 7:27:17 AM

412 Views

The ** operator returns the result of the first variable to the power of the second variable. That is, Math.pow(a,b) . If we do like a ** b ** c ,then the operation is computed from right-to-left , that is a ** (b**c) You cannot put a unary operator (+/-/~/!/delete/void/typeof ) immediately before the base number.


0 comments