Challenge: MVP Pattern
Explore how to implement the Model-View-Presenter pattern by creating email sending functionality in JavaScript. Understand the roles of Model, View, and Presenter classes and how they interact to handle data and user actions. This lesson prepares you to apply MVP architecture in real-world coding interview contexts.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you need to implement sending and displaying a sent email using the MVP pattern. You have already been given the dummy code for the classes you need to implement.
The Model class should contain the following:
-
The properties: sender’s name, receiver’s name, and the email title
-
The get and ...