Editor: Anton Kovalyov
Reviewer: Ian Elliot
This creates a 10 element array initialized to 0,1,2,3,,9.
Now is this beautiful?
I think you have to answer yes, but this isn't code you necessarily want to include in a production program - or is it?
To keep up with our coverage of books for programmers, follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.
- In The Beginning Was The Object
- The Function Object
- How Functions Become Methods
- The Object Expression
- Object Construction
- The Prototype
- Type And Non-Type
- Constructor And InstanceOf
- Duck Testing And Prototype Construction