Created
July 4, 2013 18:01
-
-
Save lucassmagal/5929400 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 foo(x) { | |
console.log('INSIDE FOO', x); | |
} | |
// 1 | |
var myvar; | |
foo(myvar = 'some text'); | |
// 2 | |
var myvar = 'some text'; | |
foo(myvar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment