Created
November 2, 2019 13:42
-
-
Save AkashRajvanshi/ab1935f5254e24f9df7d5e2d066f02e1 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 fullName = { | |
first: 'Akash', | |
last: 'Rajvanshi', | |
get full() { | |
return `${this.first} ${this.last}` | |
} | |
}; | |
console.log(fullName.full) // Akash Rajvanshi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment