var books = [ "Moby Dick", "Jane Eyre", "The Bible" ]
var books[0] = {title: "Moby Dick", author: "Melville"}
var books[1] = {title: "Jane Eyre", author: "Bronte"}
var books[2] = {title: "The Bible", author: "Steve"}
printp(books[0].title, " is by ", books[0].author)
printp(books[1].title, " is by ", books[1].author)
printp(books[2].title, " is by ", books[2].author)
books[0]["rating"] = 10
print(books[0])
Get an error that I am missing syntax before line 2. I have tried commas, colons, semicolons, brackets, paranthesis. to no avail.
var books[0] = {title: "Moby Dick", author: "Melville"}
var books[1] = {title: "Jane Eyre", author: "Bronte"}
var books[2] = {title: "The Bible", author: "Steve"}
printp(books[0].title, " is by ", books[0].author)
printp(books[1].title, " is by ", books[1].author)
printp(books[2].title, " is by ", books[2].author)
books[0]["rating"] = 10
print(books[0])
Get an error that I am missing syntax before line 2. I have tried commas, colons, semicolons, brackets, paranthesis. to no avail.
