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