+ 1
Does the content of Array has its own type?
Such as String,Int and so on
2 Answers
+ 4
var array=["boy",1,true];
alert(typeof array[0]) //string
alert(typeof array[1]) //number
alert(typeof array[2]) //boolean
alert(typeof array ) //object
This applies to JavaScript,in other languages like java the elements in the array have the same data type as array
+ 1
Yes. Arrary is array type. You can nested other types in it.