DEV Community

Discussion on: Looping through objects in JavaScript

Collapse
 
ezrafree profile image
ezrafree

Under the "Looping through the array" section, in the first code example, you have:

console.log(keys)

This should be key, not keys:

console.log(key)