Backbone.js Interview Questions – Set 03

What is sync in Backbone.js?

Sync is a function that is called every time. It attempts to read or save a model to the server. It persists the state of the model to the server.

What are the main components of Backbone.js?

Main components of Backbone.js:

  • Model – It performs various types of action on the data like validation, conversion, computed properties, access control.
  • View – It specifies how your data looks like.
  • Collection – It handles the loading and saving of new models to the server.
  • Router – It is used for routing client-side applications and connecting them to actions and events.
  • Event class object – It facilitates the objects to bind and trigger the custom events by using the desired name of our choice.