33/33 Help


#1

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


#2

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.


#3

Thx i tested it an it worked