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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!