10-Node.js study notes - asynchronous function

Asynchronous function


Asynchronous functions are asynchronous programming syntax ultimate solution, it allows us to synchronize asynchronous code written in the form, so the code is no longer nested callback function, the code becomes clear

const fn = async()=>{}
async function fn(){}

Guess you like

Origin www.cnblogs.com/foreverLuckyStar/p/12073493.html