In this PR, we created a simple Booklist using Html and Javascript, This Booklist is supposed to do the following :
Creating a collection that keeps a list of books.
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.
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 on the page.
when a user clicks the "Remove" button:
The correct book is removed from the collection.
The correct book disappears from the page.
Data is preserved in the browser's memory by using localStorage.
In this PR, we created a simple Booklist using Html and Javascript, This Booklist is supposed to do the following :
Creating a collection that keeps a list of books. 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. 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 on the page. when a user clicks the "Remove" button: The correct book is removed from the collection. The correct book disappears from the page. Data is preserved in the browser's memory by using localStorage.