JSFiddle - React, Tailwind, and code Playground
by Mitch Greer
JavaScript
function setName( obj) {
obj.name = "Nicholas";
}
var person = new Object();
setName( person);
alert( person.name); //" Nicholas"
by Mitch Greer
function setName( obj) {
obj.name = "Nicholas";
}
var person = new Object();
setName( person);
alert( person.name); //" Nicholas"