title: How to add elements in array using javascript
body: <pre><code>var total=0;
  var Status = [];
  for(i=0 ; i&lt;target.frontMostApp().mainWindow().tableViews()[3].cells().length ; i++)
  {
  Status[i] = target.frontMostApp().mainWindow().tableViews()["Activity List Table"].cells()[i].staticTexts()[3].name();
  total+=parseInt(Status[i]);
  }
  </code></pre>
  
  <p>I am storing all the cell values in status[i] , now i want to take the sum of all the values in status[i]</p>