Merge pull request #2414 from LLyaudet/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2020-12-31 21:51:24 +03:00 committed by GitHub
commit 4a0da595aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,7 +383,7 @@ JavaScript has a built-in [Math](https://developer.mozilla.org/en/docs/Web/JavaS
A few examples: A few examples:
`Math.random()` `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 ```js run
alert( Math.random() ); // 0.1234567894322 alert( Math.random() ); // 0.1234567894322
@ -400,7 +400,7 @@ A few examples:
``` ```
`Math.pow(n, power)` `Math.pow(n, power)`
: Returns `n` raised the given power : Returns `n` raised to the given power.
```js run ```js run
alert( Math.pow(2, 10) ); // 2 in power 10 = 1024 alert( Math.pow(2, 10) ); // 2 in power 10 = 1024