From d41630ee19615f182ed6d94b2ab1c40cf57a9e20 Mon Sep 17 00:00:00 2001 From: gikf <60067306+gikf@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:30:13 +0100 Subject: [PATCH] fix(learn): clarify test description for Use Rest Parameter with Function Parameter (#40725) * fix: clarify test description * fix: improve wording regarding rest parameters syntax Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * fix: improve with better sounding wording Co-authored-by: Nicholas Carrigan (he/him) Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Nicholas Carrigan (he/him) --- .../es6/use-the-rest-parameter-with-function-parameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-rest-parameter-with-function-parameters.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-rest-parameter-with-function-parameters.md index 047aaa6938..888e68da6b 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-rest-parameter-with-function-parameters.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-rest-parameter-with-function-parameters.md @@ -52,7 +52,7 @@ The result of `sum()` should be 0 assert(sum() === 0); ``` -The `sum` function should use the `...` rest parameter on the `args` parameter. +`sum` should be an arrow function which uses the rest parameter syntax (`...`) on the `args` parameter. ```js assert(__helpers.removeWhiteSpace(code).match(/sum=\(\.\.\.args\)=>/));