课程: Level Up: JavaScript

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Technical books

Technical books

(playful music) - In a previous challenge, we created a book class that accepts a title, author, ISBN, and number of copies, and provides methods for selling and restocking. In this challenge, we'll use inheritance to create a variation on our book class. Your goal is to create a technical book class that inherits from the book class in the previous challenge. This class will also take a title, author, ISBN, and number of copies, but will take a fifth argument, an edition. The technical book class will also provide a getEdition function, which returns the following string. The current version of this book is followed by the book's edition. You should use the template literal for this phrase. So pause the video, develop your solution, and when you're ready, come back and I'll walk you through how I solved the challenge. (playful music) Let's start by creating our technical book class. We want it to inherit from our…

内容