Skip to content

Instantly share code, notes, and snippets.

@xabolcs
Last active December 15, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xabolcs/9dd0d55102e23cf611db to your computer and use it in GitHub Desktop.
Save xabolcs/9dd0d55102e23cf611db to your computer and use it in GitHub Desktop.
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