JSFiddle - React, Tailwind, and code Playground
JavaScript
function go(z) {
this.x = 100;
this.z = 100;
console.log('1', this);
}
let a = new go(100);
a.z = 200;
console.log('2', a);
console.log('2', go(300));
function go(z) {
this.x = 100;
this.z = 100;
console.log('1', this);
}
let a = new go(100);
a.z = 200;
console.log('2', a);
console.log('2', go(300));