Code

General Code

Rest

Rest allows a function store multiple objects in a single array. Here is an example… When run, the console would output ‘gorilla’, ‘koala’, ‘elephant’ to the console. Note: that rest parameters must be the last parameter in the function. This is why it is called “rest”…it is the rest of the parameters. Happy Coding! Clay […]

Rest Read More »