I'm learning javascript and I can't figure out why this is not working?
var obj = {
a : 10,
b : this.a
}
The 'b' property is undefined. How can I solve this problem?
I'm learning javascript and I can't figure out why this is not working?
var obj = {
a : 10,
b : this.a
}
The 'b' property is undefined. How can I solve this problem?