Skip navigation.
Home

JavaScript

Defining an array in JavaScript

There are 3 ways of defining an array in JavaScript, each with its own charm.

Create robust functions

To define a function that can accept arbitrary number of parameters in
JavaScript, invoke the arguments array within the function. This special array
contains all of the parameters passed into it.

Syndicate content