dimanche 13 avril 2014

Node JS Promises not console logging


Vote count:

0




I am trying to write a simple example using Node JS Promise library. However, it seems either the promise is not working fine or the console logging.


Here is the code



function function1 () {
setTimeout(function(){var a = 10;},3000);
return "abcde";
}


Please tell me where i am going wrong, this is my first attempt at this.



asked 26 secs ago






Aucun commentaire:

Enregistrer un commentaire