JavaScript
Exercise 5 / 15
Arrow Functions
Medium
20 points
Convert the function function multiply(a, b) { return a * b; } to an arrow function.
Arrow functions are a concise ES6 syntax. (param) => expression replaces function(param) { return expression; }. They preserve the this context. This is the modern recommended syntax.
Well done! 🎉
Your answer is correct! You earned 20 points.
Not quite...
Try again! You can do it.
Your code
JavaScript
Result