-
-
Save xabolcs/9dd0d55102e23cf611db 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
function booleanWithNewline () { | |
return //make a newline | |
true; | |
} | |
function booleanWithoutNewLine (){ | |
return true; | |
} | |
function resultWithNewline () { | |
var result = | |
true; | |
return //make a newline | |
result; | |
} | |
function resultWithoutNewline () { | |
var result = | |
true; | |
return result; | |
} | |
function booleanWithParenthesis (){ | |
return ( | |
true | |
); | |
} | |
typeof (booleanWithNewline()); // undefined | |
typeof (booleanWithoutNewLine()); // boolean | |
typeof (resultWithNewline()); // this is also undefined | |
typeof (resultWithoutNewline()); // boolean | |
typeof (booleanWithParenthesis()); // boolean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment