title: Javascript help. Getting instance of an array, from and object while using a variable
body: <p>I have an object with arrays in it. The array is a list of questions that are wrong, but I'm using a variable to get the array in the object but I can't seem to get the syntax right.</p>
  
  <pre><code>var myObject = {
  Q1 : ["Foo", "Bar", "Test"],
  Q2 : ["Bleh", "Blah", "21"]
  };
  
  var Question = "Q" + String(Math.round(Math.random() * 3));
  
  alert (myObject[Question[1]]);
  </code></pre>
  
  <p>^Random code just made now, my actual code has more question in it</p>
  
  <p>Thank you in advance..</p>