Skip to content

Instantly share code, notes, and snippets.

@talha08
Created October 29, 2018 17:23
Show Gist options
  • Save talha08/7144cc88d9d6cb375c92e78990180a96 to your computer and use it in GitHub Desktop.
Save talha08/7144cc88d9d6cb375c92e78990180a96 to your computer and use it in GitHub Desktop.
const student = {
firstname: 'Jhon',
lastname: 'Snow',
country: 'England'
};
const { firstname, lastname, country } = student;
console.log(`We are talking about ${firstname} ${lastname}, who came from ${country}`)
//"We are talking about Jhon Snow, who came from England"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment