14. Heterogenous Arrays


#1


14 . Heterogenous Arrays

Unexpected Token


var myObj = {
    type: 'fancy',
    disposition: 'sunny'
};
var  bool1 = true;

myArray = [18; bool1; "CodeAcademy"; "myObj"]


#2

HI in**myArray** you should change all the ; by ,

,


#3

Also take off the (" ) from the myObj in your array so it will be an element


#4

hey, I've a question, only boolean should be created in a diff var and be edited seperately? why it can be added just as true/false as the others except objects ofc. thanks