Created
June 11, 2020 02:36
-
-
Save alexesca/b57aa23ed9537054964f50f15d13af1e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Before ECMAScript 2015 | |
const obj = { | |
foo: function() { | |
// ... | |
}, | |
bar: function() { | |
// ... | |
} | |
} | |
// After ECMAScript 2015 | |
const obj = { | |
foo() { | |
// ... | |
}, | |
bar() { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment