Explicit Return

suggest change

An arrow function with a brace body returns only what you return, like a classic function. Without braces, the expression itself is the return value.

const foo = x => {
  return x + 1;
}

foo(1); // -> 2

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents