Update article.md
typos : raised *to* the given power, dots after comment (one of the three function comments already had the dot at the end)
This commit is contained in:
parent
1fa08bc754
commit
cc593c6414
1 changed files with 2 additions and 2 deletions
|
@ -383,7 +383,7 @@ JavaScript has a built-in [Math](https://developer.mozilla.org/en/docs/Web/JavaS
|
|||
A few examples:
|
||||
|
||||
`Math.random()`
|
||||
: Returns a random number from 0 to 1 (not including 1)
|
||||
: Returns a random number from 0 to 1 (not including 1).
|
||||
|
||||
```js run
|
||||
alert( Math.random() ); // 0.1234567894322
|
||||
|
@ -400,7 +400,7 @@ A few examples:
|
|||
```
|
||||
|
||||
`Math.pow(n, power)`
|
||||
: Returns `n` raised the given power
|
||||
: Returns `n` raised to the given power.
|
||||
|
||||
```js run
|
||||
alert( Math.pow(2, 10) ); // 2 in power 10 = 1024
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue