This bit of code I understand. We make a copy of A and call it C. When A is changed C stays the same
var A = 1;
var C = A;
console.log(C); // 1
A++;
console.
The latest guidance from Mozilla as of 11/2020:
Don't use
console.log(obj), useconsole.log(JSON.parse(JSON.stringify(obj))).This way you are sure you are seeing the value of
objat the moment you log it. Otherwise, many browsers provide a live view that constantly updates as values change. This may not be what you want.