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


Please Help Members By Posting Answers For Below Questions

How to disable an html object ?

759


How do I add javascript to chrome?

711


What does the isNaN() function?

747


What is the difference between undefined and not defined in JavaScript?

745


Why would you use a sticky session?

723


Name some of the ways in which Type Conversion is possible?

733


Why do we need to declare variables?

707


What is the default data type in javascript?

706


What is the importance of javascript?

714


What is primitive data types in javascript?

710


Where can I learn javascript for beginners?

674


How to add a new property in existing function javascript?

727


List some features of javascript.

881


What is the instanceof operator in JavaScript?

726


How do I run javascript in chrome?

681