Created
October 29, 2018 17:21
-
-
Save talha08/c64d006a08a5b8655b85a98766551e27 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 student = { | |
firstname: 'Jhon', | |
lastname: 'Snow', | |
}; | |
const { firstname, lastname, country = "Bangladeh" } = student; | |
console.log(`We are talking about ${firstname} ${lastname}, who came from ${country}`) | |
//"We are talking about Jhon Snow, who came from Bangladeh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment