Skip to content

Instantly share code, notes, and snippets.

@gsampath127
Created February 11, 2020 16:10
Show Gist options
  • Save gsampath127/030c06c7d9046f357e0355399228a662 to your computer and use it in GitHub Desktop.
Save gsampath127/030c06c7d9046f357e0355399228a662 to your computer and use it in GitHub Desktop.
newMobile.then((message)=>
{
console.log("Ready to buy a "+message.Product+" having price "+message.Price);
}).catch((message)=>
{
console.log(message.reason);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment