JSFiddle - React, Tailwind, and code Playground
HTML
<div id="logger"></div>
JavaScript
console.log = function (m) {
$("#logger").append("<div>" + m + "</div>");
}
var x = {
count: 0
};
var t = y = x;
t.count++;
console.log("Y indirectly changes as an object literal:" + y.count);
var x2 = 0;
var t2 = y2 = x2;
t2.count++;
console.log("Y Not changed when as a native:" + y2);