Created
April 8, 2015 01:28
-
-
Save brunoskonrad/7a3ad8937031c77640d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function just_a_test() { | |
console.log(this); | |
this[arguments[0]] = arguments[1]; | |
} | |
just_a_test('a', true); | |
console.log(window.a); | |
var obj = {'well': true, 'that_is': [1, 2, 3]} | |
just_a_test.call(obj, 'that_is', 'hu3'); | |
console.log(obj['that_is']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment