title: Average value of Array
body: <blockquote>
    <p>I need to calculate the average value of my datas, my datas are in an
    array the problem is when i parseInt them into an integer i only get
    one value back and when try as an example following thing:</p>
  </blockquote>
  
  <pre><code>console.log(array[0]/24)
  </code></pre>
  
  <blockquote>
    <p>i dont get nothing</p>
    
    <p>this is my array:
    info my array is coming from php to js (php connected to api)</p>
  </blockquote>
  
  <pre><code>var signal_GW1 = dataFromAjax.data.data1.map(function(innerData){
     return innerData.map(function(row){
         return row[1];
     });
  });
  
  console.log(signal_GW1);
  </code></pre>
  
  <blockquote>
    <p>//OUTPUT on BROWSER CONSOLE</p>
  </blockquote>
  
  <pre><code>[Array(136)]
  0: Array(136)
  [0 … 99]
  0: "-59"
  1: "-59"
  2: "-59"
  3: "-59"
  4: "-53"
  5: "-63" 
  </code></pre>