Skip to content

Project: Library app. Create a book library, Part of The Odin Project Full-stack JavaScript course.

Notifications You must be signed in to change notification settings

curveservices/Library

Repository files navigation

Project: Library App

Live Demo 👉 A Small JS Library App

PC View 👇

Screenshot 2023-03-25 at 13 13 02

Overview

Project Library was set as part of the The Odin Project curriculum, to practice Object constuctors from the previous lessons.

Assets

  • None

Objectives

  1. All of your book objects are going to be stored in a simple array, so add a function to the script (not the constructor) that can take user’s input and store the new bookcd objects into an array
  2. Write a function that loops through the array and displays each book on the page. You can display them in some sort of table, or each on their own “card”.
  3. Add a “NEW BOOK” button that brings up a form allowing users to input the details for the new book: author, title, number of pages, whether it’s been read and anything else you might want
  4. You will most likely encounter an issue where submitting your form will not do what you expect it to do. That’s because the submit input tries to send the data to a server by default. If you’ve done the bonus section for the calculator assignment, you might be familiar with event.preventDefault();. Read up on the event.preventDefault documentation again and see how you can solve this issue!
  5. Add a button on each book’s display to remove the book from the library
  6. Add a button on each book’s display to change its read status.

NOTE: You’re not required to add any type of storage right now. You will have the option to come back to this project later on in the course.

Languages & Tools

Languages & Tools

Javascript HTML5 CSS3

Rozla-Dev 27.03-2023

Back to top 👆

About

Project: Library app. Create a book library, Part of The Odin Project Full-stack JavaScript course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published