Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokisuno/js-library
https://github.com/tokisuno/js-library
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tokisuno/js-library
- Owner: tokisuno
- Created: 2024-07-21T23:50:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T14:29:57.000Z (4 months ago)
- Last Synced: 2024-08-20T15:40:50.993Z (4 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Outline
1. All of your book objects are going to be stored in an array, so add a function to the script (not the constructor) that can take user’s input and store the new book objects into an array.
2. Add a “NEW BOOK” button that brings up a form allowing users to input the details for the new book:
* author
* title
* number of page
* whether it’s been read
* anything else you might want.3. Add a button on each book’s display to remove the book from the library.
* You will need to associate your DOM elements with the actual book objects in some way.
* One easy solution is giving them a data-attribute that corresponds to the index of the library array.4. Add a button on each book’s display to change its read status.
* To facilitate this you will want to create the function that toggles a book’s read status on your Book prototype instance.