title: Best way to reuse variables in Javascript?
body: <p>If I have an array in Javascript :</p>
  
  <pre><code>var myArray = [];
  
  myArray.push({ id: 0, value: 1 });
  myArray.push({ id: 2, value: 3 });
  </code></pre>
  
  <p>Is there a way I do not have to define the var { id: 2, value: 3 } again and again?</p>
  
  <p>Something which would allow me to create a variable and use it again like :</p>
  
  <pre><code>var something = { id: tempId, value: tempVal }
  </code></pre>
  
  <p>and then I can keep pushing new instances of something in the array?</p>