Created
November 15, 2022 23:49
-
-
Save mathiasgheno/11e3795838fd669128f06e36de227711 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 pessoa = { | |
nome: 'mathias', | |
idade: 26, | |
profissoes: ['desenvolvedor', 'professor'], | |
} | |
const { profissoes } = pessoa; | |
const [ primeiraProfissao, segundaProfissao ] = profissoes; | |
console.log(primeiraProfissao); // desenvolvedor | |
console.log(segundaProfissao); // professor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment