title: create a new array and push into it in one line - Javascript OOP
body: <p>I've this code with a function, wherein a I'm trying to define an <code>array</code> then on the next line pushing to it:</p>
  
  <pre><code>function Spot(value) {
    this.x = null;
    this.y = null;
    this.values = [];
    this.values.push(value);
  }
  </code></pre>
  
  <p>I've tried this:</p>
  
  <pre><code>this.values = [].push(value);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>this.values = (this.values || []).push(value);
  </code></pre>
  
  <p>But failed. Is there something wrong with the code.....</p>