In this episode we will try to understand more about how closures work in JavaScript and some of its applications. We will be dealing with the below broad topics.
- Introduction
- Nested functions
- Closures in loop
- Ajax/Fetch example
- Event Handler
In case you find my pace slow, please increase the play back speed if its available on the video.
My Favorite Books:
1. JavaScript Patterns https://amzn.to/2VjAmrb
2. Headfirst Design Patterns https://amzn.to/2VngIL1
3. Cracking the Coding Interview https://amzn.to/2GIryYE
4. Peeling Design Patterns for Coding and Interview https://amzn.to/2SWtH9I
Some references for further learning
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
https://jsbin.com/welaror/edit?js,console,output