Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

promises in javascript

myPromise.then(
  function(value) { /* code if successful */ },
  function(error) { /* code if some error */ }
);
Source by scotch.io #
 
PREVIOUS NEXT
Tagged: #promises #javascript
ADD COMMENT
Topic
Name
7+2 =