Google News
logo
Backbone - Quiz(MCQ)
How does Backbone.js decide if it should use POST/GET/ Request to the Server and what methods Backbone has reserved for these Operations?
A)
If the id attribute of the model is null, Backbone.js sends a POST request to the urlRoot of the Server using the save() method.
B)
If the id attribute of the model is not null, Backbone.js sends a PUT request instead of a POST request using the save() method.
C)
If we instantiate a model with an id, Backbone.js automatically performs a GET request to the urlRoot + '/id' using the fetch() method.
D)
All of the Above.

Correct Answer :   All of the Above.

Advertisement