title: How can the output elements put in an array in javascript?
body: <pre><code>function main() {
      var increase = parseInt(readLine(), 10);
      var prices = [98.99, 15.2, 20, 1026];
      //your code goes here
      for(var i=0;i&lt;prices.length;i++)
      {
      var b=prices[i]+increase;
      console.log(+b);
     }
  }
  </code></pre>
  <p>Here the output is displayed in seperate elements but I want all the elements in a single array.</p>