Class representing a chapter.

const chapter1 = new Chapter(); // this line range
const chapter2 = new Chapter(); // shall be included
const chapter3 = new Chapter(); // in the example
const book = new Book("The Lord of the Rings", [chapter1, chapter2, chapter3]);
console.log(book.chapters.length); // 3

Constructors

Constructors