<h2>Looping object keys with for...in</h2>
xxxxxxxxxx
var obj = {a: 1, b: 2, c: 3};
for (const prop in obj) {
console.log(`key: ${prop}, value: ${obj[prop]}`);
}
This Pen is owned by Envato Tuts+ on CodePen. It is a fork of this Pen.
See more by @tutsplus on CodePen