How do I define an object in javascript where the value of one of its key is inherited from another key.
a = {
  one : "a",
  two : this.one + 'b'
}
alert(a.two);
I know that I can do this by doing something like a.two = a.one + 'b';
But is there a cleaner way to keep them coupled within one flower brace
 
     
    