Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Concise Arrow Function Syntax

Arrow functions are already less verbose than function declarations and function expressions, but you can write them in a more concise way.

Arrow Functions with One Parameter

If your arrow function accepts a single argument, like the square function below, you can omit the parentheses:

const square = x => {
  return x * x;
}

square(10); // 100

Arrow Functions ...