loading...

re: Syntactical Overkill in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Nice article! Quick tip: In your pre-ES2015 callApi() example, token and type would have to be defined above the function call, to be equivalent t...
 

The thing is that you can't use token and type in the body of the caller of callApi bc you don't know if the callback was called and it's side-effects were produced.

Code of Conduct Report abuse