DEV Community

Discussion on: Syntactical Overkill in JavaScript

Collapse
 
iglosiggio profile image
Ignacio Losiggio

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.