Introduction to objects 1 part 32 need help


#1


https://www.codecademy.com/courses/spencer-sandbox/5/3?curriculum_id=506324b3a7dffd00020bf661#


error messages: 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.


Replace this line with your code. 
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");

what's wrong with the code?


#2

J.R.R., you forgot a full stop after the last R. Strings often need to be an exact match in codecademy


#3

ok thank you for asnwering :slight_smile:


#4