Question
What is array?what is associative arrays in javascript?

Answers

Array is a collection of index items and it is a number indexes.Some of programming language support array as named indexes and the JavaScript not support the array as name indexes and its provide only number indexes but provide this feature using the associative array.
The array with name indexes are called associative array and the associative array is provide a ways to store the information.
The number index array example as given below
    var users = new Object();    users["Name1"] = "Anil 1";    users["Name2"] = "Anil 2";    users["Age"] = 33;    alert(Object.keys(users).length); //output is 3.    var length = Object.keys(users).length;  // 3  
The name index array example as given below    var users = [];    users["Name1"] = "Anil 1";    users["Name2"] = "Anil 2";    users["Age"] = 33;    var length = users.length;         // users.length will return 0    var detail = users[0];             // users[0] will return undefined   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q The population of a city increases @ 4% p.a. That is an additional annual increase of 4% of the population due to this influx of job seekers, the % increase in population after 2 years is
  • Q What is logging table?
  • Q What is the product of the time period of a wave and its frequency?
  • Q Share a time when your competitor was in the lead, but you overcame them and won the account.
  • Q What is the generic name for Slo-Fe?
  • Q How many sub pages, secondary pages can you create in one level?
  • Q What is IBAN Number in SAP ?
  • Q "What do you expect me to accomplish in the first 90 days?"
  • Q How many permanent members are there in the UN?
  • Q What was the first complete symphony to be recorded
  • Q A little more information is needed prior to a complete answer can being given, simply which two of the glycosphingolipids are you trying to separate, from what matrix are you trying to determine them, what form of detection are using or have you access to ie light scattering or UV-vis or MS or ECd or fluorecence?