Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Backbone.model first parameter determines properties that each instance must have

Person = Backbone.Model.extend({defaults:{name: "john smith"}, y:"YYYY"
}

  );
person = new Person(); 
 
console.log(person.y); 
 
PREVIOUS NEXT
Tagged: #parameter #determines #properties #instance
ADD COMMENT
Topic
Name
3+3 =