Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Making promises

new Promise((resolve, reject) => {
  if (ok) { resolve(result) }
  else { reject(error) }
})
 
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #Making #promises
ADD COMMENT
Topic
Name
6+1 =