Tuesday, November 13, 2007

A function in JavaScript is a first-class type

It can be passed as an argument to another object. A function can receive arbitrary arguments to act on. It can return primitive types, or it can even retrun a new function.

No comments: