Created
January 17, 2019 10:15
-
-
Save DeeSouza/d6042aae8e5234918d4567b8e631c87f to your computer and use it in GitHub Desktop.
Desustructure Object - ES6
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
// Declarando Objeto | |
const me = { | |
name: "Diego", | |
age: 27, | |
job: "Web Developer" | |
}; | |
// Destructuring | |
const { name, age, job } = me; | |
console.log(name, age, job); // Diego 27 Web Developer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment