The iterable protocol allows JavaScript objects to define or customize their iteration behavior, such as what values are looped over in a for..of construct.
An array is an ordered collection of data (either primitive or object depending upon the language).
An array is an ordered collection of data (either primitive or object depending upon the language). Arrays are used to store multiple values in a single variable. This is compared to a variable that can only store one value.
Each item in an array has a number attached to it, called a numeric index, that allows you to access it. In JavaScript, array's start at index zero and can be manipulated with various methods.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
JavaScript Collection
JavaScript Collection
Iterator Companion
JsCollection Companion
The iterable protocol allows JavaScript objects to define or customize their iteration behavior, such as what values are looped over in a for..of construct. Some built-in types are built-in iterables with a default iteration behavior, such as Array or Map, while other types (such as Object) are not.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols