14. Heterogeneous arrays - HELP!


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];


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

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


Thank you! It worked!


Thanks its working fine


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