DEV Community

Discussion on: The tale of three dots in Javascript

Collapse
 
jamesernator profile image
James Browning

If we don't need the exact arguments before the rest, we don't have to name them. This example also works:

This isn't correct, parameters always have to be named, none of the popular engines support this.

Collapse
 
sonicoder profile image
Gábor Soós

Thanks for noting