add runs buttons

to make `alerts` work
This commit is contained in:
Lavrentiy Rubtsov 2022-07-15 23:37:35 +06:00 committed by GitHub
parent 55d806dd55
commit 374d0b3c9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,7 @@ alert(arr.pop()); // World (method works)
The same happens for an iterable:
```js
```js run
// assuming that range is taken from the example above
let arr = Array.from(range);
alert(arr); // 1,2,3,4,5 (array toString conversion works)
@ -233,7 +233,7 @@ The optional second argument `mapFn` can be a function that will be applied to e
For instance:
```js
```js run
// assuming that range is taken from the example above
// square each number