The rest operator (…) allows us to call a function with any number of arguments and then access those excess arguments as an array . The rest operator also allows us in destructuring array or objects. The spread operator (…) allows us to expand an iterable like array into its individual elements.