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/38036pull/38073/head
parent
27b4deae36
commit
d824c77012
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue