Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • promise
  • resolve

Javascript ES6 - Create and resolve promise

Resolve a new promise object

0
297
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Use resolve callback of new Promise

new Promise(resolve, reject) {
  resolve();
}
javascript
  • Promise

Notes

last update: June 16, 2015

Advertisement

This project is hosted on DigitalOcean, try it and support us

Random task

  • Remove user
  • Assign variable
  • Get last element of array
  • Undo git merge that is local only
  • Transform scale
  • Blog
  • About
  • License