diff --git a/1-js/02-first-steps/15-function-basics/4-pow/solution.md b/1-js/02-first-steps/15-function-basics/4-pow/solution.md index 19fe9011fc..b9c295d52c 100644 --- a/1-js/02-first-steps/15-function-basics/4-pow/solution.md +++ b/1-js/02-first-steps/15-function-basics/4-pow/solution.md @@ -10,8 +10,8 @@ function pow(x, n) { return result; } -let x = prompt("x?", ''); -let n = prompt("n?", ''); +let x = +prompt("x?", ''); +let n = +prompt("n?", ''); if (n < 1) { alert(`Power ${n} is not supported, use a positive integer`);