Skip to content

Commit 45ce771

Browse files
committed
Fix error in pow task solution
1 parent 62a0bb5 commit 45ce771

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/14-function-basics/4-pow

1 file changed

+1
-1
lines changed

1-js/02-first-steps/14-function-basics/4-pow/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function pow(x, n) {
1313
let x = prompt("x?", '');
1414
let n = prompt("n?", '');
1515

16-
if (n <= 1) {
16+
if (n < 1) {
1717
alert(`Power ${n} is not supported,
1818
use an integer greater than 0`);
1919
} else {

0 commit comments

Comments
 (0)