MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / Book

Class Book

assets/js/libraryapp.js:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3//Book Object
4class Book{
5 constructor(title="Unknown",author="Unknown",isRead){
6 this.title = title;
7 this.author = author;
8 this.isRead = isRead;
9 }
10}
11//Book Array
12let myLibrary = [];
13//Adding a new Book

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected