14.Heterogenous Arrays


#1

Hi,
Here's my code,

var myArray=[45,false,"dj",me];
var me= new Object();
me.name="xyz";
me.age=14;

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


#2

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.


#3

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