Created
March 10, 2019 18:12
-
-
Save BolajiAyodeji/30f496fc4546fd2ecd6fec24f75a7ba0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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