Skip to content

Instantly share code, notes, and snippets.

@eXpl0it3r
Last active December 13, 2016 17:19
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 eXpl0it3r/141e29d3a48f5013b1e1c779259dcf80 to your computer and use it in GitHub Desktop.
Save eXpl0it3r/141e29d3a48f5013b1e1c779259dcf80 to your computer and use it in GitHub Desktop.
How to return?
function()
{
if(statement)
return value_one;
else
return value_two;
}
function()
{
if(statement)
return value_one;
return value_two;
}
function()
{
return_value = value_two;
if(statement)
return_value = value_one;
return return_value;
}
function()
{
return statement ? value_one : value_two;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment