minor
This commit is contained in:
parent
d4447e30cc
commit
d8d50868ea
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ Write a function `pow(x,n)` that returns `x` in power `n`. Or, in other words, m
|
||||||
```js
|
```js
|
||||||
pow(3, 2) = 3 * 3 = 9
|
pow(3, 2) = 3 * 3 = 9
|
||||||
pow(3, 3) = 3 * 3 * 3 = 27
|
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)`.
|
Create a web-page that prompts for `x` and `n`, and then shows the result of `pow(x,n)`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue