Hi all,
Quick question, and one I am yet to work out on my own. I'll start with an example.
object = {
somevariable: true,
someothervariable:31,
somefunction: function(input){
if (somevariable === true){
return someothervariable+input;
}
}
}
object.somefunction(3);
Obviously this won't work. Do I have to say object.somevariable
and object.someothervariable
or is there a means of referring to variables that are part of the local object, without referring to the object explicitly?
Thanks
Gausie