PRACTICE / UNDERSTAND / REPEAT

JavaScript practice question

Practice functions with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Functions · Code recallQuestion link ↗

Complete the arrow function that doubles its argument.

const double = (value) ___ value * 2;
Answer & explanation

Answer: =>

The `=>` token separates an arrow function’s parameter list from its expression body.