Using Spread Operator
sum that uses the spread operator to accept any number of arguments and calculates their sum. The function should be exported for testing purposes.
...) allows you to expand iterable elements like arrays or strings. It's useful when you want to collect any number of arguments passed to a function or when you want to spread elements among different arrays or objects.