Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created December 29, 2017 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/e2945d6babd9c95ac1cea670aabaa595 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/e2945d6babd9c95ac1cea670aabaa595 to your computer and use it in GitHub Desktop.
var car = {
model: 'bmw',
color: 'red',
price: 2000
}
console.log(JSON.stringify(car));
car.type = 'manual'; // dynamic property console.log(JSON.stringify(car));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment