@Gordon, what's your implementation-knowing 'guess'? ...space / memory footprint, time / performance?
var obj =
{ property:123
, funWithThis: function() {
// function/method using 'this' in body
// lots of lots this.something(); this.somethingThat(); ...
return this.property;
}
, funWithLocalVariable: function() {
// function/method using 'var _ that references this' in body
var _ = this;
// lots of lots _.something(); _.somethingThat(); ...
}
return _;
};
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon, what's your implementation-knowing 'guess'? ...space / memory footprint, time / performance?