const obj = {
count: 10,
doSomethingLater() {
setTimeout(() => {
console.log(this.count);
this.count++;
}, 1000);
},
};
 
obj.doSomethingLater();
 
Code will run automatically after changes.
Code runs in an isolated environment.