Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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