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 example

console.log(library.listBooks());

Constructors

Properties

Methods

Constructors

Properties

books: Book[] = []

Methods