// async function example async function f() { console.log('Async function.'); return Promise.resolve(1); } f();