Sat Aug 06 2022 00:10:09 GMT+0000 (Coordinated Universal Time)
Saved by @vnmshenoy
let isAsync=false; function doAsync(){ return new Promise(function(resolve,reject){ resolve(); }); } doAsync().then(function(val){ console.log(isAsync); }); isAsync=true;
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments