title: JavaScript edit Array inside Object
body: <p>Is it somehow possible to push items to an array inside of a JavaScript object</p>
  
  <p>Here my code:</p>
  
  <pre><code>function test() {
  this.array = [];
  
  this.addItem = function() {
      this.array.push("someString");
  }
  
  this.removeItem = function() {
      this.array.remove(0);
  }}
  </code></pre>