By James Sugrue
Read or Download Beginning Backbone.js PDF
Object-oriented programming is a well-liked buzzword nowadays. what's the reason behind this recognition? Is object-oriented programming the answer to the software program challenge or is it only a fad? Is it an easy evolutionary step or an intensive switch in software program technique? what's the crucial proposal in the back of object-orien ted layout?
- Programming Web Services with Perl
- AngularJS: Novice to Ninja
- HTML5 Games Most Wanted: Build the Best HTML5 Games
- jQuery Recipes: A Problem-Solution Approach (Expert's Voice in Web Development)
Additional resources for Beginning Backbone.js
27 Chapter 2 ■ Getting Object-Oriented There are two ways to create a new array; the second of which is more favorable, as shown here: var myArray = ; var myArray = new Array(); Items can then be added to specific indexes of the array. Arrays have a zero-based index, which means that the position 0 is the first element in the array. myArray = 'first item'; Items can also be pushed onto the array, taking the next available position. push('first item'); If you already know what items you need in the array, you can use a more condensed syntax for creation.