JSFiddle - React, Tailwind, and code Playground

by spechackers

JavaScript

var o = {x: 20};
o.x = 40; 
console.log(o.x); //value has been changed.

var x = "foo";
var substr = x.substring(1,2); // substr is now the string "o"
console.log(x); //it still is foo