Created
March 24, 2019 03:36
-
-
Save Damimd10/8d8d4d913767eb03600d78c676fcd582 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 batman = { | |
isFromDC: true, | |
info: function() { | |
console.log(`Batman is ${this.isFromDC ? '' : 'not '}from DC`) | |
}, | |
} | |
batman.info() // Batman is from DC. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment