I'm triggered by 32


Make sure that the_hobbit's author is J.R.R. Tolkien by passing it as the first argument to the Book constructor.


Replace this line with your code.

// 3 lines required to make harry_potter
var harry_potter = new Object();
harry_potter.pages = 350;
harry_potter.author = "J.K. Rowling";

// A custom constructor for book
function Book (pages, author) {
this.pages = pages;
this.author = author;

// Use our new constructor to make the_hobbit in one line
var the_hobbit = new Book(320,"J.R.R Tolkien");

32 oops, try again
Section 32

it should be: J.R.R., the . is missing after the final R


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.