Constructor
new Book(title, author)
Create a book.
Parameters:
Name | Type | Description |
---|---|---|
title |
string | The title of the book. |
author |
string | The author of the book. |
- Source:
Methods
get_author() → {string}
Get the book's author.
- Source:
Returns:
The author of the book.
- Type
- string
get_title() → {string}
Get the book's title.
- Source:
Returns:
The title of the book.
- Type
- string