ES6 - Use the Rest Parameter with Function Parameters

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
const sum = (x, y, z) => {
let args =0;
args = [x, y, z];
return args.reduce((a, b) => a + b, 0);

console.log(sum(2, 4, 6));
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: ES6 - Use the Rest Parameter with Function Parameters

Link to the challenge:

Hello, welcome to the forum🍟.
Did you have a question?

I have noticed a few of these “ghost” threads. It must be something in the freecodecamp interface that makes this happen.

Quite simply, people open the topic then get their answer by themselves as the forum is full of help on almost every beginner step. Then they don’t return till they hit something again.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.