Skip to content

A simple JavaScript program that stores movies and their IMDb ratings, then displays movies with ratings below and above 7. πŸŽ₯✨

Notifications You must be signed in to change notification settings

MphoInTech/movie-filter-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 Movie Ratings Program

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

πŸ› οΈ How It Works

  1. The program uses prompt() to ask for a movie name and its rating.
  2. Movies are stored in an array as objects, for example: { movie: "Inception", rating: 8.8 }
  3. 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.

About

A simple JavaScript program that stores movies and their IMDb ratings, then displays movies with ratings below and above 7. πŸŽ₯✨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published