JavaScript
Result
Run
License
const thenable = { then: function(onFulfilled) { setTimeout(() => onFulfilled(42), 1000); } }; async function test() { const v = await thenable; console.log(v); } test();
Console
expand_less
License
License
by DevDic
Close