For this exercise you will write a constructor for making "book" objects. This object should have the following properties:
author, the number of
pages, and whether or not you have
read the book.
Put a function into the constructor that can report the book info like so
book.info() // "The Hobbit by J.R.R. Tolkien, 295 pages, not read yet"
Important Note: It is better to
return things rather than putting
console.log() directly into the function. In this case, return the
info string and log it after the function has been called:
Create a new repo named
js-object-constructors, add your instructor(s) as collaborator(s) and submit its URL.
0 of 1 Questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 1 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Submit your GitHub URL
Grading can be reviewed and adjusted.Grading can be reviewed and adjusted.
This response will be awarded full points automatically, but it can be reviewed and adjusted after submission.