Okay this seems really simple but I just can't get it to work. I need to combine variables in an obect. Something like this:
var i = {
a: 1,
b: " sheep",
c: this.a + this.b
}
So that later on I can do something like:
i.a = 3;
console.log(i.c);
and get "3 sheep".
Is this just silly? Or what is the closest thing to it?