Well, args should be the function parameter . And you really don’t need const args = [...n]. You already have an array on which you can use reduce() on
You don’t need to declare another args array, just spread the function parameter “args” and then reduce your values in args to accumulate. In other words, delete const args = […n]; and replace your …n parameter with …args