This is a simple JavaScript program that allows you to:
- π₯ Add movies and their IMDb ratings
- π Stop input anytime by pressing Cancel
- π Display movies with ratings less than 7
- π Display movies with ratings 7 or higher
- The program uses
prompt()
to ask for a movie name and its rating. - Movies are stored in an array as objects, for example: { movie: "Inception", rating: 8.8 }
- It then displays movies filtered by rating below or above 7.
π Learning Context This project was created as part of a lesson on Loops in the OpenEDG JavaScript course. It helped reinforce the use of loops and conditional statements in practical programming.
π» Technologies Used
- JavaScript (Vanilla)
- Browser prompt() and console for input/output
π Acknowledgements
- Thanks to OpenEDG for providing the course content on JavaScript loops.
- Inspired by IMDbβs movie rating system.