Game Organiser
This task is to recap your skills from level 2 and uses a lot of the same knowledge as the pizza app required.
Whenever there is something that you're not sure of, prioritise going back to the level 2 notes (or even level 1 notes) to re-learn it. Recapping is the whole point of the task after all!
Brief: Create a program to manage a collection of video games.
The program should have the following functionality:
Hint: Don’t forget to add JQuery in the <head> if you choose to use it!
Additional Features:
- Check for duplicate entries when adding games.
- Allow users to search for a specific game title and display its index if found.
- Implement error handling for cases like trying to remove a game that isn't in the inventory.
Whenever there is something that you're not sure of, prioritise going back to the level 2 notes (or even level 1 notes) to re-learn it. Recapping is the whole point of the task after all!
Brief: Create a program to manage a collection of video games.
The program should have the following functionality:
- Add Games: Allow users to add new games to the collection (an array). When a game is added, it should be appended to the array of game titles. (Use push() - refer to level 2 notes)
- Remove Games: Allow users to remove games from the collection. When a game is removed, it should be deleted from the array of game titles. (Use pop() and splice() - refer to level 2 notes)
- Display Inventory: Display the current inventory of games, listing each game title along with its index in the array. This might happen automatically after an “add” or “remove”. (Refer to "listing the pizzas" - level 2 notes)
Hint: Don’t forget to add JQuery in the <head> if you choose to use it!
Additional Features:
- Check for duplicate entries when adding games.
- Allow users to search for a specific game title and display its index if found.
- Implement error handling for cases like trying to remove a game that isn't in the inventory.