Skip to content

Instantly share code, notes, and snippets.

function fun1() {
setTimeout(function () { //normal
console.log("normal (setTimeOut)", this);
}, 0);
}
function fun2() {
setTimeout(() => { //arrow
console.log("arrow (setTimeOut)", this);
}, 0);