Created
August 4, 2017 08:21
-
-
Save s-ashwinkumar/da19e580ca46a5fe7646f7da15d7f32d to your computer and use it in GitHub Desktop.
Sample synchronous code
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
try { | |
var result1 = syncMeth1(); | |
var result2 = syncMeth2(result1); | |
var finalResult = syncMeth3(result2); | |
console.log("I DID IT - "+finalResult); | |
}catch(error){ | |
failCall(error); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment