1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Use the Default Iterator from an Array

    javascriptJavaScript

    Every Array has a function which you can use to create an iterator. This function can only be accessed by using the Symbol.iterator as a key on the Array. Once you have created your iterator, you can use it to iterate through each value of the Array using .next or a for loop.