The for...in vs for...of statement in JavaScript
Originally posted here!
Photo by
Tine Ivanič
for...in statement
The for...in statement is used to loop over object enumerable properties.
Let's consider an object called john with name and age fields
// object
const john = {
name: ...
melvingeorge-me.hashnode.dev2 min read