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: