title: How to create objects/arrays in JavaScript?
body: <p>I am fairly new to JavaScript and I want to create objects and arrays using JavaScript.</p>
  
  <p>What I'm basically after is a way of creating an object that will store the following information, i.e.:     </p>
  
  <p>[index, name] such as [0,"NameA"][1,"NameB"] etc.</p>
  
  <p>I am unsure how to create an object/array to store this type of info with jQuery.</p>
  
  <p>Secondly, I then need a means of passing this object/array as a parameter into another function then be able to loop through this object/array and print out it's contents.</p>
  
  <p>Again, I am unsure how to do this part as well.</p>