Need Help for Introduction to Object 1 - Q32 ! Thx


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; = "J.K. Rowling";

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

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


you misspelled the_hobbit


Thanks !!!

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

But, I cannot find the error =.=


debugging is a separate skill you will need to learn


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