4 ms·
'Async' here refers not only to the keyword but also to what is achieved, in classic javascript, through callback functions
by zzbzq 6y ago
'Async' here refers not only to the keyword but also to what is achieved, in classic javascript, through callback functions
- z3t4 6y agoEven though there is the async keyword and Promise() there are no async functions nor callbacks in JavaScript itself. For example setInterval and setTimeout is not part of the language and needs to be implemented by the runtime/program that runs the JavaScript.