10 lines
195 B
JavaScript
10 lines
195 B
JavaScript
async function f() {
|
|
const result = typeof fn === 'function' ? await fn() : null;
|
|
}
|
|
|
|
(async function() {
|
|
console.log(
|
|
await (true ? Promise.resolve("A") : Promise.resolve("B"))
|
|
);
|
|
})()
|