From 374d0b3c9d75e4f42f18df24eac22c3c1f0f68d8 Mon Sep 17 00:00:00 2001 From: Lavrentiy Rubtsov Date: Fri, 15 Jul 2022 23:37:35 +0600 Subject: [PATCH] add runs buttons to make `alerts` work --- 1-js/05-data-types/06-iterable/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/06-iterable/article.md b/1-js/05-data-types/06-iterable/article.md index ce9074cc..76f74036 100644 --- a/1-js/05-data-types/06-iterable/article.md +++ b/1-js/05-data-types/06-iterable/article.md @@ -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