The looping constructs for..in and for..of are used to traverse across data structures. The sole distinction is the entities that they iterate over: for..in loops through all of an object's enumerable property keys. Iterates over the values of an iterable object with for..of.