Model-View-Controller

The Model-View-Controller design pattern and its derivatives are incredibly prevalent, and any front-end developer should be familiar with them!

We'll cover the following

Design patterns are important to write maintainable and reusable code. A pattern is a reusable solution that can be applied to commonly occurring problems in software design.

In the last few years, a series of JavaScript MVC frameworks have been developed, such as backbone.js, ember.js, AngularJS, Sencha, Kendo UI, and more. While they all have their unique advantages, each one of them follows some form of MVC pattern, with the goal of encouraging developers to write more structured JavaScript code.

MVC pattern overview

MVC offers architectural benefits over standard JavaScript — it helps you write better organized, and therefore more maintainable code. This pattern has been used and extensively tested over multiple languages and generations of programmers.

MVC is composed of three components:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.