Saturday 23 April 2016

When should I use normal functions vs asynchronous functions

I have been using Node in 2 projects but I usually just use other peoples modules. This is why I don't really know when to use normal functions vs asynchronous functions e.g.function funct1() { //Do stuff here return (stuff here) } vsfunction funct2(callback) { //Do stuff here callback(argsHere); } Any help would be appreciated!

Submitted April 24, 2016 at 06:13AM by mre12345

No comments:

Post a Comment