title: Can JS have getters and setters methods named same as property?
body: <p>I want to achieve behaviour like down in code:</p>
  
  <pre><code>function Foo(name) {
      this.name = name;
  };
  
  var myFoo = new Foo('myName');
  
  myFoo.name('newMyName'); // sets myFoo.name = 'newMyName'
  myFoo.name(); // returns 'myName'
  </code></pre>
  
  <p>But it is obvious that in that case I'm overridding name property with name function. Is anyhow possible to achieve that functionality?</p>