Tell us what’s happening:
Describe your issue in detail here.
I am failing 2 Tests on arguments optional. Those ones which have currying arguments. I don’t know how to access those currying arguments. I have check on Google but I could not find any correct solution. Can somebody help me?
**Your code so far**
function addTogether() {
let args = [...arguments];
for(let i = 0; i < args.length; i++) {
if(typeof(args[i]) !== "number") {
return undefined;
} else {
return args.reduce((acc, val) => acc + val)
}
}
}
console.log(addTogether(5, 5));
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36