Better HN
topnewbestaskshowjobs
Log inSign up

blablapromise

3 karma · joined Feb 28, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

just remember it is just sugar:

const a = async () => "hello world"

is the same as

const b = () => Promise.resolve("hello world")