In JavaScript, the for...of loop is used to traverse the elements of specific data structures one by one. We'll discuss and learn how to implement these concepts within your next JavaScript project. We’ll take a short discovery on the JavaScript built-in method, Symbol.iterator() which serves the unit block. As a result, our above LeapYear type is an Iterable too. This is a basic idea ofIterables andIterators.