title: Push values to array in jquery
body: <p>I have List of items <code>data and empty array quotations</code> :</p>
  
  <pre><code>   var data = {};
     var quotations = [];
  </code></pre>
  
  <p>I want to fill <code>quotations</code> with data values ,Every time i add new data it added successfully but all data values get last value .</p>
  
  <p>for example :</p>
  
  <pre><code> $("#addquotation").click(function () {
          debugger;
          var itemname = $("#itemname").val();
          var cost =parseFloat( $("#cost").val());
          var notes = $("#notes").val();
          var date = $("#date").val();
  
  
          data.Item = itemname;
          data.Cost = cost;
          data.Notes = notes;
          data.Date = date;
  
          quotations.push(data);
  )};
  </code></pre>
  
  <p>for first time i add </p>
  
  <blockquote>
    <p>"test,45,testnotes,2016-02-03" Second time i 've added
    "test2,45.2,testnotes2,2016-02-05"</p>
  </blockquote>
  
  <p>when i debug i get data as :</p>
  
  <blockquote>
    <p>obj(0): "test2,45.2,testnotes2,2016-02-05"
    obj(1):"test2,45.2,testnotes2,2016-02-05"</p>
  </blockquote>
  
  <p>it seems it append last version to all data</p>
  
  <p>Please Advice . Thanks</p>