Rest parameters: Getting all function arguments dynamically.
When we have a function that is passed one or two arguments, it’ s quite easy to get the arguments and do what we want with them. But a problem arises when for example, a function needs to be passed up to or more than 4…