Skip to content

Instantly share code, notes, and snippets.

@s-ashwinkumar
Created August 4, 2017 08:21
Show Gist options
  • Save s-ashwinkumar/da19e580ca46a5fe7646f7da15d7f32d to your computer and use it in GitHub Desktop.
Save s-ashwinkumar/da19e580ca46a5fe7646f7da15d7f32d to your computer and use it in GitHub Desktop.
Sample synchronous code
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