14. Heterogenous Arrays


14 . Heterogenous Arrays

Unexpected Token

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

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


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



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


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