Last active
March 10, 2019 13:05
-
-
Save ezhov-da/5c7ea8eca430c769cadfae4c1b801604 to your computer and use it in GitHub Desktop.
js массивы
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==> https://learn.javascript.ru/array-iteration | |
var arr = ["Яблоко", "Апельсин", "Груша"]; | |
arr.forEach(function(item, i, arr) { | |
alert( i + ": " + item + " (массив:" + arr + ")" ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment