define async arrow function javascript code example Example: async arrow function const foo = async () => { // do something }