I Dont know what to do in this es6 task

Tell us what’s happening:
Describe your issue in detail here.
I’ve tried everything but nothing works. The function is supposed to add everything and I’m confused

  **Your code so far**

const sum = (...x ) => {
return x
console.log(sum(1, 5, 3, 2));
  **Your browser information:**

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

Challenge: Use the Rest Parameter with Function Parameters

Link to the challenge:

you deleted the part of the function that could do that
I suggest you reset your code

1 Like

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