We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 434d8ca + 45ce771 commit dcc6e4dCopy full SHA for dcc6e4d
1 file changed
1-js/02-first-steps/14-function-basics/4-pow/solution.md
@@ -13,7 +13,7 @@ function pow(x, n) {
13
let x = prompt("x?", '');
14
let n = prompt("n?", '');
15
16
-if (n <= 1) {
+if (n < 1) {
17
alert(`Power ${n} is not supported,
18
use an integer greater than 0`);
19
} else {
0 commit comments