So, in my code js, I have a global variable that changes its value several times, for example
var x = 0;
...
x = 10;
...
x = 5;
Is it possible to get a “history” xwithout saving its value in other variables? For example, is there any function to detect that at some point in time xit was 10?
source
share