Apologies for the confusion. When I run the code in Chrome or Firefox, it gives some kind of warning . See below
The sum function uses the … spread operator on the args parameter
Perhaps the compiler is not liking this somehow; i dont know why it does not cause the same issue for you.
I can’t imagine that it wants the variable name to be args instead of x – have you tried that? I’m on a public terminal atm, that blocks jQuery, so I am testing code on jsfiddle. And there, it works fine.
If you want help you need to post your code. Anyway, there are no working solutions in this thread, but there are hints to make the OP code a working solution,
Use the “Ask for help” button if you want to create a thread with your code to ask for help