Created
November 1, 2019 18:28
-
-
Save ma-9/b1ca71796198ec3ddcfad886a7545796 to your computer and use it in GitHub Desktop.
JavaScript ES8 Features (Object.values and Object.entries)
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
// Object Values and Object Entries | |
const Employes = { | |
name: 'Manav', | |
age: '21', | |
contact: ['9662260013','[email protected]'], | |
callme: function(){ | |
return this.name + this.age; | |
} | |
} | |
// Object.values(); | |
Object.values(Employes); | |
// Object.entries(); | |
console.log(Object.entries(Employes)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment