Example:
a = {k: 10};
b = {k: 20};
var fn = function () {with (a) {this.k = 30;}};
fn.call(b);
console.log("a.k: ", a.k); // 10
console.log("b.k: ", b.k); // 30
I can't seem to go back and edit, though...
I can't seem to go back and edit, though...