async function test() {
return (await Promise.resolve(0)) || 10;
}
test().then(console.log);
Post #1817
6.64K
CHALLENGE
- 👍 11
JA JavaScript @javascript · 31K subscribers
async function test() {
return (await Promise.resolve(0)) || 10;
}
test().then(console.log);