Explain Javascript Closures

Alex Gwartney - Nov 10 '20 - - Dev Community

So could someone give some examples as to how closures are useful? As I get its way of not using global variables. and you access it by creating two functions and returning the nested function.

Other than this I really don't see where or why you should use it.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player