I saw a question similar to mine on Stackoverflow, but most people just provided various jobs that I was not looking for.
I want the property in my JSON to refer to the previous property in the same object:
var x = { a : 1, b : a + 1 };
I tried b : this.a + 1 , but this does not work.
Why can't I define "b" in terms of "a"? Again, I'm not looking for workarounds, just understanding and understanding.
thanks
source share