Skip to content

Instantly share code, notes, and snippets.

@BolajiAyodeji
Created March 10, 2019 18:12
Show Gist options
  • Save BolajiAyodeji/30f496fc4546fd2ecd6fec24f75a7ba0 to your computer and use it in GitHub Desktop.
Save BolajiAyodeji/30f496fc4546fd2ecd6fec24f75a7ba0 to your computer and use it in GitHub Desktop.
let obj = {
key1: "value1",
key2: "value2",
key3: "value3"
}
for (let key in obj) {
let value = obj[key];
console.log(key, value);
}
// key1 value1
// key2 value2
// key3 value3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment