Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function leFunction(){
- return new Promise( (resolve, reject) => {
- resolve("ok");
- reject("fail");
- } );
- }
- leFunction.then( (data) => { console.log(data) });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement