Closure in JS
Jul 17, 2024 ยท 2 min read ยท A function along with it's lexical scope inside a function is called closure. example: let's take a we want to increment a value by clicking a button, the basic way we can do it by is using a varible which will be incremented on every click. var clic...
Join discussion
