A class representing a library.
const library = new Library() // this line range .addBook(new Book("The Lord of the Rings")) // shall be included .addBook(new Book("The Hobbit")); // in the exampleconsole.log(library.listBooks()); Copy
const library = new Library() // this line range .addBook(new Book("The Lord of the Rings")) // shall be included .addBook(new Book("The Hobbit")); // in the exampleconsole.log(library.listBooks());
A class representing a library.
Example