14/17 Heterogeneous Arrays


I'm not sure what's wrong. The error is:
SyntaxError: Unexpected identifier
Here is my code:
var book = {
title: "Wonder"
dateMade: 2012
var myArray = [2, false, "yay", book];


First, identifiers are used to name variables so the interpreter says there's an unexpected.

Really to be able to add as many objects to the array, even beyond the first four, you could do something like this:

var myArray = new Array();
myArray.type = 1;
myArray.disposition = 'Bayo is a boy';
myArray.age = true;
myArray.school = 'Olando';

myArray = [myArray.type, myArray.disposition, myArray.age, myArray.school]

Hope this helps!?:smiley: