title: append value to javascript array
body: <p>If one want to append to this type of array:</p>
  
  <pre><code>array = ["one","two","three"];
  </code></pre>
  
  <p>so it becomes,</p>
  
  <pre><code>array = ["one","two","three, "four"];
  </code></pre>
  
  <p>use:</p>
  
  <pre><code>array.push("four");
  </code></pre>
  
  <p>but how do you append here:</p>
  
  <pre><code>object = {element1: one, element2: two, array: ["one","two","three"]};
  </code></pre>
  
  <p>so it becomes,</p>
  
  <pre><code>object = {element1: one, element2: two, array: ["one","two","three,"four"]};
  </code></pre>