From d824c770123bf626e2930303ffaed7d09bab299d Mon Sep 17 00:00:00 2001 From: ML <25686852+monicaleep@users.noreply.github.com> Date: Tue, 14 Jan 2020 20:47:34 -0600 Subject: [PATCH] Move the comment on line 71 to its own line (#38036) * Move the comment on line 71 to its own line The comment "use function argument destructuring" was on the same line as some code, and when displayed as a challenge it returned to a new line and was not commented out. * Update line 71 comment per @manish-giri suggestion Move the comment "use function argument destructuring" to above the "change code below this line" comment for clarity. Based on conversation in this pull request https://github.com/freeCodeCamp/freeCodeCamp/pull/38036 --- ...ment-to-pass-an-object-as-a-functions-parameters.english.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md index f94fd2302ab..5107e09db90 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md @@ -67,8 +67,9 @@ const stats = { average: 35.85 }; +// use function argument destructuring // change code below this line -const half = (stats) => (stats.max + stats.min) / 2.0; // use function argument destructuring +const half = (stats) => (stats.max + stats.min) / 2.0; // change code above this line console.log(stats); // should be object