-
-
Save gaurang847/3d845f4c902adf350d50183955e8f19a 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 get_value_from_DB(){ | |
//Database related code here. | |
//At the end of operation, it returns 42 if successful | |
//and -1 otherwise | |
} | |
let value = get_value_from_DB(); | |
console.log(value); //prints 'undefined' as console.log runs before | |
//get_value_from_DB() could return a value. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment