why array is called the collection of similar datatypes?



why array is called the collection of similar datatypes?..

Answer / guest

Array is called the collection of similar datatypes because
we can not add an object of some other type where as the
array which is declared is of another type.
For e.g
We declare a Integer array then we can not add an object of
type string into that array.We have to add an object of type
string only.

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More JavaScript Interview Questions

What creates scope in javascript?

0 Answers  


What is callback in javascript?

0 Answers  


What's the Difference Between Class and Prototypal Inheritance?

0 Answers  


How to shift and unshift using javascript?

0 Answers  


What are arrays in javascript?

0 Answers  


What is NaN?

0 Answers  


How to handle event handlers?

0 Answers  


what is syntax of wapper class

1 Answers  


What is the role of javascript in html?

0 Answers  


Why do we need hoisting in javascript?

0 Answers  


Explain mul function in javascript?

0 Answers  


Difference Between JavaScript and ECMAScript?

0 Answers  


Categories