add runs buttons
to make `alerts` work
This commit is contained in:
parent
55d806dd55
commit
374d0b3c9d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue