| 1 | class Book { |
| 2 | constructor( |
| 3 | title, |
| 4 | author, |
| 5 | ISBN, |
| 6 | pubYear, |
| 7 | pageNumber, |
| 8 | currentPage, |
| 9 | readStatus |
| 10 | ) { |
| 11 | this.title = title; |
| 12 | this.author = author; |
| 13 | this.ISBN = ISBN; |
| 14 | this.pubYear = pubYear; |
| 15 | this.pageNumber = pageNumber; |
| 16 | this.currentPage = currentPage; |
| 17 | this.readStatus = readStatus; |
| 18 | } |
| 19 | updateCurrentPage(newCurrentPage) { |
| 20 | this.currentPage = newCurrentPage; |
| 21 | } |
| 22 | updateReadStatus(newReadStatus) { |
| 23 | this.readStatus = newReadStatus; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | export default Book; |
nothing calls this directly
no outgoing calls
no test coverage detected