why array is called the collection of similar datatypes?
Answer Posted / 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 View All Answers
What is number in javascript?
How generic objects can be created?
What is the syntax of ‘self invoking function’? Give an example?
Mention what is the disadvantage of using innerhtml in javascript?
Does javascript support foreach loop?
What are the valid scopes of a variable in JavaScript?
What is the use of the ‘this’ keyword?
Why are callbacks used?
What is difference between var x =1; and x=1;?
What's Prototypes for JavaScript
How can javascript language be separated from objects?
Why it is not advised to use innerhtml in javascript?
Which built-in method returns the character at the specified index?
Is there any ide for javascript?
What is the use of 'bind' method in JavaScript?