Created
April 29, 2009 06:38
-
-
Save hiratara/103630 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
<html> | |
<body> | |
<script type="text/javascript"> | |
var noReturn = (function () {})(); | |
document.write("NO RETURN:" + noReturn + "<br>"); | |
var explicitReturn = (function () {return false;})(); | |
document.write("EXPLICIT RETURN:" + explicitReturn + "<br>"); | |
</script> | |
</body> | |
</html> | |
/* | |
NO RETURN:undefined | |
EXPLICIT RETURN:false | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment