Created
December 5, 2019 21:53
-
-
Save onliniak/ff80a596289a52cf8b4e8f07cb8391bd to your computer and use it in GitHub Desktop.
Javascript ES6 create new object
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
| let gist = 'GitHub' | |
| object = new Object(); | |
| object.ID = 1 | |
| object.name = 'me' | |
| object.gist = gist | |
| //{ | |
| // "ID": 1, | |
| // "name": "me", | |
| // "gist": "GitHub" | |
| //} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment