Google News
logo
Backbone - Quiz(MCQ)
You can limit number of models in Collection using the following code?
A)
var myCollection = new Collection(); myCollection.url = this.model.url() + '/feed'; myCollection.fetch();
B)
var myCollection = new Collection(); myCollection.url = this.model.url() + '/slient'; myCollection.fetch();
C)
var myCollection = Backbone.Collection.extend({ parse: function(response) { return response.slice(0,20); } });
D)
All of the above

Correct Answer :   var myCollection = Backbone.Collection.extend({ parse: function(response) { return response.slice(0,20); } });

Advertisement