Coding Best Practices (JavaScript)

Avoid long parameter lists in method signatures

Janaka Chathuranga

--

Actually I would say not to use more than 4 parameters. Okay?

Wait What?

It was ridicules when I first heard it. Of course we normally tend to use many parameters on a method signature. In general this is not a good practice because it becomes difficult to understand the order of parameters from the other end.

--

--