About accessing elements in the array in rest parameters

Tell us what’s happening:
Describe your issue in detail here.
unable to complete challenge

  **Your code so far**

const sum = (x, y, z) => {
const args = [x, y, z];
return args.reduce((a, b) => a + b, 0);
  **Your browser information:**

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

Challenge: Use the Rest Parameter with Function Parameters

Link to the challenge:

unable to complete challenge

Yes, that is why people usually ask for help. What specifically is causing difficulty?

Yes, the rest operator is a confusing one in the beginning. I would recommend doing some google searching. That is what professional devs do all the time if they aren’t sure about something.

If you get stuck, try something and then ask. But be specific in your question - devs have to communicate and explain difficulties all the time - it’s good practice.

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