UpTest > Web Development > Backbone.js Test

Test: Backbone.js Test

Question 1: Prev Next Hide answers

What are the Events of Backbone JS?

Note: There may be more than one right answer.
var object = {}; _.extend(object, Backbone.Events); object.on("alert", function(msg) { alert("Trigger " + msg); }); object.trigger("alert", "event");
1 votes
None of the above
0 votes
var object = {}; _.extend(object, Backbone.Events); object.on("fire ", function() { alert("Ouch, you just kick me"); }); object.trigger("fire"); 
1 votes
var myModel = Backbone.Model.extend({ defaults : { title : ‘title’, description : ’description, owner : ‘anonymous’, date : ‘no date supplied’ } });
0 votes
Please login to submit your answer.