Jatangi Thanujacli.hashnode.dev·May 15, 2024detailed information on closuresA function can have access to variables of it's outer scope. example: function outer(){ let x= 10 function inner(){ console.log(x) } return inner } In the inner function we are accessing the x variable from outer scope of that inner function this is ...closures in javascriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.