33/33 Help


// help im getting error

// 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");


you missed the dot (.) after the last "R" in "J.R.R. Tolkien"
the console can be a bit too specific at times .
Try and see if it works.


Thx i tested it an it worked