# Math.pow and Infinity

3 answers

No, because anything is zero.

Not only is this easier to implement, it is mathematically correct (some mathematicians say `pow(0, 0)`

undefined, but the general convention is to accept `pow(x, 0) == 1`

for **any** x).

Also, it's in the spec (link officially stolen from primvdb): http://es5.github.com/#x15.8.2.13

+5

source to share

No, this is not a mistake. This behavior conforms to the ECMA Javascript definition .

+1

source to share