Google News
logo
Backbone - Quiz(MCQ)
Which of the following Backbonejs collection methods is used for adding a model at the beginning of a collection?
A)
collection.at(begin. model)
B)
collection.unshift(model. [options])
C)
collection.push(model, [options])
D)
collection.get(id. model, [options])

Correct Answer :   collection.unshift(model. [options])

Advertisement