freeCodeCamp: ES6: Use the Rest Operator with Function Parameters - spread operator test fails
Challenge Name
https://beta.freecodecamp.org/en/challenges/es6/use-the-rest-operator-with-function-parameters
Issue Description
The challenge fails on the last test "The sum function uses the … spread operator on the args parameter. I have tripled checked my code, reset it and refreshed but it doesn’t seem to recognize the spread operator is being used.
I found this but not sure if related: Reference: https://github.com/freeCodeCamp/freeCodeCamp/issues/12698
Browser Information
Browser Name, Version: Operating System: FireFox 57.0 (64-bit) and Chrome Version 63.0.3239.84 (Official Build) (64-bit) Mobile, Desktop, or Tablet: Laptop Windows 10 Professional 64-bit
Your Code
`"use strict()";
function sum(...array) {
return array.reduce((a, b) => a + b, 0);
}
console.log(sum(1, 2, 3)); // 6`
Screenshot

About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (17 by maintainers)
Commits related to this issue
- fix(seed): Code looking for specific variable name with no hi Changed the varibale name from array to args as required by the validation code. Closes #16351 — committed to sagarjhaa/freeCodeCamp by sagarjhaa 6 years ago
- fix(seed): Change variable name from array to args changed variable name from array to args. It will validate the last validation.Particular variable name is required but it is not mentioned in descr... — committed to sagarjhaa/freeCodeCamp by sagarjhaa 6 years ago
- fix(seed): Change variable name from array to args (#16472) Changed variable name from array to args. It will validate the last validation. Particular variable name is required but it is not mentione... — committed to freeCodeCamp/freeCodeCamp by sagarjhaa 6 years ago
- fix(seed): Change variable name from array to args (#16472) Changed variable name from array to args. It will validate the last validation. Particular variable name is required but it is not mentione... — committed to mhatout/freeCodeCamp by sagarjhaa 6 years ago
- fix(seed): Change variable name from array to args (#16472) Changed variable name from array to args. It will validate the last validation. Particular variable name is required but it is not mentione... — committed to ValeraS/freeCodeCamp by sagarjhaa 6 years ago
On it. Thanks @systimotic