issues
search
cmolinan
/
Awesome-Books
"Awesome books" is a simple interactive website that displays a list of books and allows you to add and remove books from that list. It is built with JavaScript for DOM manipulation and for managing data in objects.
https://cmolinan.github.io/awesome-books
5
stars
1
forks
source link
Awesome books: plain JavaScript with objects
#1
Closed
cmolinan
closed
2 years ago
cmolinan
commented
2 years ago
Project requirements:
Implement only a basic UI with plain HTML
Create a collection that keeps a list of books (hint: you can use an array of objects for that).
Create a function to add a new book to the collection, with title and author.
Create a function to remove a book from the collection (hint: you can use the
array filter()
method).
Display all books saved in the collection in the top part of the page.
When a user clicks the "Add" button:
A new book is added to the collection.
The new book is displayed in the page.
When a user clicks the "Remove" button:
The correct book is removed from the collection.
The correct book dissapears from the page.
The data is preserved in the browser's memory by using
localStorage
.
Without use of any library or framework, use only plain JavaScript.
Project requirements: