3 ms·
In JavaScript, Math.pow(0, 0) == 1. In Python and Ruby, 0 asterisk asterisk 0 == 1. In Windows Calculator, 0 [x^y] 0 == 1. So I guess the consensus is that y
by kijin 13y ago
In JavaScript, Math.pow(0, 0) == 1.
In Python and Ruby, 0 asterisk asterisk 0 == 1.
In Windows Calculator, 0 [x^y] 0 == 1.
So I guess the consensus is that you should return 1.