Fix error in pow task solution

This commit is contained in:
Mike Gowen 2018-04-21 22:22:50 -07:00
parent 62a0bb597f
commit 45ce771ea8

View file

@ -13,7 +13,7 @@ function pow(x, n) {
let x = prompt("x?", '');
let n = prompt("n?", '');
if (n <= 1) {
if (n < 1) {
alert(`Power ${n} is not supported,
use an integer greater than 0`);
} else {