AppDividend
Latest Web Development Tutorials
Browsing Tag

iterable

Iterators in Javascript

Hey, web fellows, In today’s AppDividend Tutorial, I have briefly described Iterators in Javascript. Iterators in  Javascript An iterator is a new concept of ES6. An Iterator is an object that let us iterate through an Array, an Object, a String or even custom Objects. The Iterator allows us to effectively loop over a collection of objects like an array, string, objects or other data structures. Example //main.js let dances = ; let mj = dances(); console.log(mj.next()); If you directly run above code in the browser, then you…