Skip to content

Instantly share code, notes, and snippets.

@craigbutcher
Created February 27, 2015 14:34
Show Gist options
  • Save craigbutcher/4e74c3790cc570608b18 to your computer and use it in GitHub Desktop.
Save craigbutcher/4e74c3790cc570608b18 to your computer and use it in GitHub Desktop.
JavaScript question - is it a 5 or a 6?
function myfunc(num) {
str=3;
return num;
}
var str=2;
var num=2;
alert(myfunc(3) + str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment