DEV Community

Discussion on: How to iterate through objects in JAVASCRIPT ?

Collapse
 
jcubic profile image
Jakub T. Jankiewicz

You can use:

for ([key, value] of Object.entries(range)) {
   console.log(`${key}: ${value}`);
}
Enter fullscreen mode Exit fullscreen mode

This is not the case for iterators, I would use different example if you want showcase them.