2 ms·
I think you make good points. The reason I used these simple examples was only for simplicity and to illustrate that named function callbacks can be used within
by panthomakos 15y ago
I think you make good points. The reason I used these simple examples was only for simplicity and to illustrate that named function callbacks can be used within closures rather than littering your global space with function declarations. More complex examples would probably have taken away from the core point of the article.
- tlrobinson 15y agoIt's understandable you wanted simple examples, I just worry beginners will take it literally and name every callback.