Sorry for such a random title, but have no idea how to explain it better. And therefore, no idea if this is a duplicate question or not.
So, when declaring a new ob
var myObject = { super : 1, mega : 5, uber : 100 }; myObject.giga = myObject.super + myObject.mega + myObject.uber;