title: Assigning array variables in Javascript
body: <p>I am having a small issue with variable assignment. For some reason my line variable doesn't properly assign. </p>
  
  <pre><code>var records = new Array();
  var recid = -5
  var subrecid = 6495;
  var line = new Array();
  line['recid'] = recid;
  line['subrecid'] = subrecid;
  if (subrecid &gt; 0) records.push(line);
  </code></pre>