Introduction to objects 1 part 32 need help


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; = "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_hobbit = new Book(320,"J.R.R Tolkien");

what's wrong with the code?


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


ok thank you for asnwering :slight_smile: