Skip to content

Instantly share code, notes, and snippets.

@kswlee
Created March 9, 2014 13:30
Show Gist options
  • Save kswlee/9447761 to your computer and use it in GitHub Desktop.
Save kswlee/9447761 to your computer and use it in GitHub Desktop.
function foo (x) {
if (x=true) {
// no matter what value is
// passed in for x, this
// will always execute
}
}
foo(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment