Microsoft interview question

what are closures in javascript?

Interview Answer

Anonymous

13 Jan 2025

closures are the functions which remember or have access of variables of its surrounding/parent function, even if the surrounding functions has finished running.