1-3 hours
To build a modular system using Object Oriented Programming principles.
In this project, you’ll build an event management system that will help you practice Object Oriented Programming using JavaScript.
You need to build a program that lets users browse a list of events and save the ones they are interested in. For today’s piece of the project, you’ll write object-oriented JS code to manage users and events. In a later lesson, you’ll add a UI for your users to use.
When you instantiate an EventRecommender object, you should be able to do the following:
Before you start coding, think about and write down the answers to these questions:
You may change your answers as you write the code, but it’s good to have a general plan worked out before you code.
Note:
Start with the following code:
class EventRecommender {
constructor() {
// All main properties should go here.
this.events = [];
this.users = [];
}
addEvent() {
// Adds a new Event to the System
}
addUser() {
// Adds a new User to the System
}
saveUserEvent() {
// Allow users to save events to a personal Events array.
}
deleteUser() {
// Deletes a User from the system
}
deleteEvent() {
// Deletes the Event from the system
}
findEventsByDate() {
// Returns all events on a given date
}
findEventsbyCategory() {
// Returns all events in a given category
}
}