14. Heterogeneous arrays - HELP!


#1


I don't understand what I'm doing wrong! Can anyone help please?? I'm getting confused with this part.


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

myArray = [24, false, "peach", myObj];


#2

Hi in your object you should separat each key/value witha comma like that

var myObj = {
    type: 'fancy' , <--
    dispostion: 'sunny'
};

#3

Thank you! It worked!


#4

Thanks its working fine


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.