Created
May 20, 2018 10:01
-
-
Save valerymelou/d40e75af1436910c50c9e97e21ac8009 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 firstName = "John"; | |
const lastName = "Doe"; | |
const birth = 1980; | |
const death = 1990; | |
const person = { | |
firstName, | |
lastName, | |
age() { | |
return death - birth; | |
} | |
} | |
console.log(person); // {firstName: "John", lastName: "Doe", age: f} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment