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
How to open a window with no toolbar, but with the location object?
Why is javascript used for web pages?
What is noscript tag?
Do you have to declare variables in javascript?
What is event target in javascript?
What are the new ways to define a variable in Javascript?
Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.
How to make a array as a stack using javascript?
Where do you write javascript?
If an array with name as "names" contain three elements, then how will you print the third element of this array?
Can javascript code be broken in different lines?
Name the types of functions.
What is use of settimeout function in javascript?
Should I disable javascript?
What is difference between local variable and global?