This commit is contained in:
Ilya Kantor 2018-06-07 18:07:19 +03:00
parent d4447e30cc
commit d8d50868ea

View file

@ -9,7 +9,7 @@ Write a function `pow(x,n)` that returns `x` in power `n`. Or, in other words, m
```js
pow(3, 2) = 3 * 3 = 9
pow(3, 3) = 3 * 3 * 3 = 27
pow(1, 100) = 1 * 1 * ...*1 = 1
pow(1, 100) = 1 * 1 * ...* 1 = 1
```
Create a web-page that prompts for `x` and `n`, and then shows the result of `pow(x,n)`.