This is a solution to the Project: Library on The Odin Project.
Features:
- Search book(s)
- Add book(s)
- Remove book(s)
- Edit a book's information
- Change a book's read status
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I learned to create object constructor.
function Book(cover, title, vol, author, link, markAsRead, id) {
if (!new.target) {
throw Error("You must use the 'new' operator to call the constructor");
}
this.cover = cover;
this.title = title;
this.vol = vol;
this.author = author;
this.link = link;
this.markAsRead = markAsRead;
this.id = id;
}- Twitter - @AzamAzis01
