Question: 2. (10 Points) Write a constructor function for a Book with title, author and length properties. Book objects should also have a method called print

2. (10 Points) Write a constructor function for a Book with title, author and length properties. Book objects should also have a method called print that prints all three properties. Do NOT use the ECMAScript 2015 Class Keyword. var mobyDick-new Book 'Moby Dick', 'Herman Melville', 882); mobyDick-print) 1I Moby Dick by Herman Melville, is 882 pages long
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
