Though some of the concepts in this course are still relevant, overall this course does not reflect our current course standards or industry best practices.

Check out a free preview of the full Backbone.js (with Introduction to Testing) course:
The "Defining Models" Lesson is part of the full, Backbone.js (with Introduction to Testing) course featured in this preview video. Here's what you'd learn in this lesson:

When defining models, data structures do not need to be predefined. However, predefining attributes allows developers to set default values. The "on" method can be used to add listener events for Model attributes. Models also have methods like "save" which enable persistence on the server.

Get Unlimited Access Now