Skip to content

Instantly share code, notes, and snippets.

@aderaaij
Last active November 14, 2017 22:17
Show Gist options
  • Save aderaaij/0f5145364069941fedcdb36863f82d02 to your computer and use it in GitHub Desktop.
Save aderaaij/0f5145364069941fedcdb36863f82d02 to your computer and use it in GitHub Desktop.
// https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Statements/for...in
const hulk = {
color: 'Green',
size: 'Large',
weight: 500,
power: 'Super Strength',
};
for (const prop in hulk) {
console.log(`${prop}: ${hulk[prop]}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment