Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs promise then example

p.then(onFulfilled, onRejected);

p.then(function(value) {
   //  run
  }, function(reason) {
  // fail
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #nodejs #promise
ADD COMMENT
Topic
Name
7+4 =