Created
November 8, 2019 22:06
-
-
Save kjk/165eb7cf43b628fbb6b49a792638df01 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
// :glot | |
const person = { | |
firstName: "John", | |
lastName: "Doe", | |
log: () => console.log("hello from log()") | |
}; | |
console.log("firstName:", person.firstName); | |
console.log("lastName:", person["lastName"]); | |
person.log(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment