Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The anonymous array constructor, [], looks very much like the parentheses that surround list literals. Superficially, they both seem to serve the same purpose—building lists. However, anonymous array constructors differ from list literals in significant ways.
An anonymous array constructor returns a reference, not a list. The purpose of an anonymous array constructor is to allow you to create a reference to an array object without having to create a named array: