Created
September 2, 2019 20:25
-
-
Save marcosrivasr/e9207e2e23e80aba8c7257c4faa92ecc to your computer and use it in GitHub Desktop.
This file contains 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
const p = new Promise((resolve, reject) =>{ | |
// cuerpo de la función | |
let x = 10; | |
if(x == 10){ | |
resolve('La variable es igual a 10'); | |
}else{ | |
reject('Error: no se cumplió la condición'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment