Language concepts

Async arrow function

Try the free JavaScript compiler

An arrow function whose calls produce promises. Its this binding is lexical like other arrow functions; it is not constructible.

Formal Syntax & Structure

javascript syntaxjavascript
const f = async (value) => value;

Working Example

Example Snippetjavascript
const f=async n=>n*2; f(4).then(console.log);
JavaScript Reference