Created
May 25, 2020 11:15
-
-
Save M1n007/c0792a9976093aa8cf2ccd19d443c7e3 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
const etl = { | |
easy: '1', | |
to: '2', | |
learn: '3', | |
a:'s' | |
} | |
function run(etl){ | |
const arrayKey = Object.keys(etl); | |
const objectArray = Object.entries(etl); | |
objectArray.map(([key, value]) => { | |
console.log(`Key ${key} memiliki value ${value}`) | |
}) | |
console.log('\n'); | |
console.log(`Object etl mempunyai key sebanyak ${arrayKey.length}`) | |
} | |
run(etl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment