I’m feeling lost here. I don’t understand almost anything in this challenge. Could you please give some hint here?

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

  **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 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Mobile/15E148 Safari/604.1

Challenge: Use the Rest Parameter with Function Parameters

Link to the challenge:

There’s no hints here, you have to understand the rest parameter. If this challenge isn’t giving you enough information then there is no harm in using the googles to find more information on the “javascript rest parameter”.

According to the instructions, you have to modify the function parameter with rest params, which you havent done.

Replace (x,y,z) with (…args) and remove the const args since we dont need it (or it will return an error)

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