Created
          July 30, 2021 17:01 
        
      - 
      
- 
        Save alibalbars/4308bb8def71970170f65f98f69d9c94 to your computer and use it in GitHub Desktop. 
    Js Promises
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | let promise = new Promise(function(resolve, reject) { | |
| setTimeout(() => reject(new Error("Whoops!")), 1000); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment