Online interview questions

Prepare interviews on Anything, AnyWhere

Blogger, Developer

What is Collection in Backbone?

Collection is a set of models which binds events when the model has been modified in the collection. Collection contains a list of models that can be processed in the loop and supports sorting and filtering. When creating a collection, we can define what type of model that collection is going to have along with the instance of properties. Any event triggered on a model, which will also trigger on the collection in the model.