Skip to content

Commit dcc6e4d

Browse files
authoredJun 7, 2018
Merge pull request #426 from mikegowen/function-pow-task-error
Fix error in pow task solution
2 parents 434d8ca + 45ce771 commit dcc6e4d

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)
Please sign in to comment.