32/33 what am i doing wrong


#1

// 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;
}

var the_hobbit = new Book(320 ,"Tolkien");

console.log(the_hobbit.pages);

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


#2

Make sure that the_hobbit's author is "J.R.R. Tolkien"<-----name of the author
add the name of the author


#3

thank you it help me alot