Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Promises do not work properly #29

Open
jimmyhmiller opened this issue Aug 9, 2015 · 0 comments
Open

Promises do not work properly #29

jimmyhmiller opened this issue Aug 9, 2015 · 0 comments

Comments

@jimmyhmiller
Copy link

If you have a log in a promise it will not show up in the output. Here is some example code to recreate this.

function get (url){
  return new Promise(function(resolve, reject){
    resolve("test");
  });
}

function printGetData() {
    get('http://example.com')
        .then(function (data) {
            console.log(data);
        });
}

printGetData();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant