title: assigning setter / getter for js object
body: <p>I tried to assign a setter for my js "class":  </p>
  
  <pre><code>function testing(){
      this.value = "content";
      set a(b){
          this.value = b;
      };
  }
  var test1 = new testing();
  test1.a = "nope";
  </code></pre>
  
  <p>But it throws out <code>SyntaxError: missing ; before statement</code> on line <code>set a(b){</code> could some one tell me how the correct syntax is ?</p>