Photo by Marek Piwnicki on Unsplash

Most of us who want to learn closure have already used it before. So, we don’t need to learn closure. Instead, we need to recognize closure.

When a function access a variable/another function outside of it, it’s a closure? Don’t worry if it’s confusing. Let's look at an example

If we call app() function, we get the output “Ronaldo is a good sportsman”. Here, the function app is accessing a player…