Backbone.JS Initialize() collection

The Backbone.JS Initialize() collection method is used to create a model instance.


Backbone.Collection.Initialize ()



Initialize Collection Example  


Hello World

Explanation: In the above example, the model ‘X’ includes the default values and is extended using the Backbone.Model class. Here, the model instance is invoked by defining the initialize function, and ‘Y’ is a collection instance.

Please follow and like us:
Content Protection by