1.

Which of the following is the correct syntax for reading attributes from Model object?

Answer»

Which of the following is the CORRECT syntax for reading ATTRIBUTES from Model object?
CHOOSE the correct option from below list
(1)Var BOOK=Backbone.Model.extend({title:'XXX'});
(2)var objBook = NEW Book();
(3)objBook.getAttr('title');
(4)objBook.get('title');
(5)objBook.attr('title');
(6)objBook.key;

Answer:-(4)objBook.get('title');



Discussion

No Comment Found