We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 725653f + a197375 commit 2020876Copy full SHA for 2020876
1 file changed
1-js/02-first-steps/15-function-basics/4-pow/solution.md
@@ -10,8 +10,8 @@ function pow(x, n) {
10
return result;
11
}
12
13
-let x = prompt("x?", '');
14
-let n = prompt("n?", '');
+let x = +prompt("x?", '');
+let n = +prompt("n?", '');
15
16
if (n < 1) {
17
alert(`Power ${n} is not supported, use a positive integer`);
0 commit comments