From 37d98f1123df9df1af999f8218a1c4d11b710577 Mon Sep 17 00:00:00 2001 From: Alan Price <23743415+alanpaulprice@users.noreply.github.com> Date: Wed, 9 Jan 2019 11:00:16 +0000 Subject: [PATCH] Challenge - ES6: Write Arrow Functions with Parameters - Expanded description (#25997) * Reworded and expanded the description * renamed the function in the multiple param example --- .../es6/write-arrow-functions-with-parameters.english.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/write-arrow-functions-with-parameters.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/write-arrow-functions-with-parameters.english.md index 346c1f341f..e91a6bcebe 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/write-arrow-functions-with-parameters.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/write-arrow-functions-with-parameters.english.md @@ -6,9 +6,12 @@ challengeType: 1 ## Description
-Just like a normal function, you can pass arguments into arrow functions. +Just like a regular function, you can pass arguments into an arrow function.
// doubles input value and returns it
const doubler = (item) => item * 2;
-You can pass more than one argument into arrow functions as well. +If an arrow function has a single argument, the parentheses enclosing the argument may be omitted. +
// the same function, without the argument parentheses
const doubler = item => item * 2;
+It is possible to pass more than one argument into an arrow function. +
// multiplies the first input value by the second and returns it
const multiplier = (item, multi) => item * multi;
## Instructions