Codington
0 of 6 problems solved • 0%
Use in a course

Exercise prompt

Use a Concise Return

When an arrow function has a single expression without braces, that expression is returned automatically.

Example

const triple = (number) => number * 3;

There is no return keyword in this concise form.

Your task

Complete the concise arrow function so double(6) returns 12.