Skip to content

Instantly share code, notes, and snippets.

@onliniak
Created December 5, 2019 21:53
Show Gist options
  • Select an option

  • Save onliniak/ff80a596289a52cf8b4e8f07cb8391bd to your computer and use it in GitHub Desktop.

Select an option

Save onliniak/ff80a596289a52cf8b4e8f07cb8391bd to your computer and use it in GitHub Desktop.
Javascript ES6 create new object
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