Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 1.8 KB

README.md

File metadata and controls

78 lines (56 loc) · 1.8 KB

The Odin Project - Library solution

This is a solution to the Project: Library on The Odin Project.

Table of contents

Overview

The challenge

Features:

  • Search book(s)
  • Add book(s)
  • Remove book(s)
  • Edit a book's information
  • Change a book's read status

Screenshot

Preview Library

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

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;
}

Author

Acknowledgments