title: Class variables outside a class
body: <p>Lets say that I have a class like this</p>
  
  <pre><code>class Vector {
      constructor(x,y) {
          this.x = x
          this.y = y
      }
  }
  </code></pre>
  
  <p>How can i do something like this</p>
  
  <pre><code>class Vector {
      constructor() {
      }
      var x;
      var y;
  }
  var v = new Vector()
  v.x = 3
  v.y = 4
  </code></pre>
  
  <p>I basically want to declare my variables outside the constructor. Done some research. Found nothing</p>