Need Help for Introduction to Object 1 - Q32 ! Thx


#1

I used the following codes and the system told me I was wrong.

I cannot find the 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_habbit = new Book(320, "J.R.R. Tolkien");


#2

you misspelled the_hobbit


#3

Thanks !!!

Every time , I dont want to ask for help here since I know the error is simple.

But, I cannot find the error =.=


#4

debugging is a separate skill you will need to learn


#5

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