JSFiddle - React, Tailwind, and code Playground
by tivie
JavaScript
var ninja = {
attacks: [{ name: 'shuriken throw', power: 25 } ]
}
console.log('before change', ninja.attacks); // will show updated info
console.log('before change', JSON.stringify(ninja.attacks)); //shows original info
alert('Notice that console has outputed information already'); // break in execution
ninja.attacks[0].name = 'poof';
console.log('after change', ninja.attacks); // will show updated info
console.log('after change', JSON.stringify(ninja.attacks)); // will show updated info