JSFiddle - React, Tailwind, and code Playground
by colorkid
JavaScript
function resolveAfter2Seconds(a) {
return a;
//return Promise.resolve(a);
}
async function f1() {
var x = await resolveAfter2Seconds(10);
console.log(x); // 10
}
f1();
by colorkid
function resolveAfter2Seconds(a) {
return a;
//return Promise.resolve(a);
}
async function f1() {
var x = await resolveAfter2Seconds(10);
console.log(x); // 10
}
f1();