Created
February 27, 2015 14:34
-
-
Save craigbutcher/4e74c3790cc570608b18 to your computer and use it in GitHub Desktop.
JavaScript question - is it a 5 or a 6?
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 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