14.Heterogenous Arrays


Here's my code,

var myArray=[45,false,"dj",me];
var me= new Object();

Can someone tell me what's wrong in this?
Thank you


how can you put me object in array before you defined me object?

If i ask you to put this on a shelf, you will ask me what this is

same with JS, if you don't define something, JS doesn't know what it should store.


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