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 = (...args) => {
  const args = [x, y, z];
  return args.reduce((a, b) => a + b, 0);
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: ES6 - Use the Rest Parameter with Function Parameters

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

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