Skip to content

Instantly share code, notes, and snippets.

@lucassmagal
Created July 4, 2013 18:01
Show Gist options
  • Save lucassmagal/5929400 to your computer and use it in GitHub Desktop.
Save lucassmagal/5929400 to your computer and use it in GitHub Desktop.
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