Home

Asynchronous calculator

x = 4

let e=5;console.log("x = "+e),console.warn("Give me two seconds, first empty my coffee and then I will multiply x by 2"),setTimeout(()=>{e*=2,console.log("x * 2 = "+e)},2e3),console.warn("Give me a sec, I'm coming down and add 6 to x"),setTimeout(()=>{e+=6,console.log("x + 6 = "+e)},1e3),e-=1,console.log("x - 1 = "+e),document.querySelector("pre").innerText="x = "+e;
//# sourceMappingURL=calculator_asynchronous.js.map