DEV Community

Discussion on: Javascript 1O1 series : Functions

Collapse
 
supportic profile image
Supportic

There is also the reserved arguments keyword which is an array like object.
developer.mozilla.org/en-US/docs/W...

Collapse
 
osam1010 profile image
Osama

it's not a keyword, its an array-like object that hold the values passed to the function, since ES6 introduced rest parameters it's recommended to use rest ( ...arguments ) over arguments object
i recommend using arguments object when working with legacy code, or code that meant to ES5 and before