Introduction to backbone js:-


BackboneJS is a lightweight JavaScript 

library that allows to develop and structure the client side applications that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events.

History − BackboneJS was developed by Jeremy Ashkenas and was initially released on October 13th, 2010.

When to use Backbone:-

  • Consider you are creating an application with numerous lines of code using JavaScript or jQuery. In this application, if you −

    • add or replace DOM elements to the application or

    • make some requests or

    • show animation in the application or

    • add more number of lines to your code,

    then your application might become complicated.

  • If you want a better design with less code, then it is better to use the BackboneJS library that provides good functionality, is well organized and in a structured manner for developing your application.

  • BackboneJS communicates via events; this ensures that you do not mess up the application.