Javascript Function Parameters

Hype limits the number of parameters as we may decide to add an argument in the future (we’ve done this before, although haven’t recently so perhaps this could be rethought).

Luckily, there’s a JavaScript workaround for this - you can use the arguments variable which is an array of all the arguments sent to the function. JavaScript has no problem sending more parameters and then looking up via this array.

3 Likes