JSFiddle - React, Tailwind, and code Playground
by gene
JavaScript
var a = {
value: 1,
foo: function () {}
},
b;
b = Object.create(a);
a.value = 2;
// would expect this to be 1, but alert says 2
alert(b.value);
by gene
var a = {
value: 1,
foo: function () {}
},
b;
b = Object.create(a);
a.value = 2;
// would expect this to be 1, but alert says 2
alert(b.value);