Created
May 12, 2020 22:47
-
-
Save ramazankanbur/d363076cb596330a0bf331b9e45d5d17 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
| //ES5 | |
| obj = { | |
| fn1: function (a, b) { | |
| return ''; | |
| }, | |
| fn2: function (x, y) { | |
| return ''; | |
| }, | |
| }; | |
| //ES6 | |
| obj = { | |
| fn1(a, b) { | |
| return ''; | |
| }, | |
| fn2(x, y) { | |
| return ''; | |
| }, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment