POPSUGAR Interview Question

Explain closures in JavaScript.

Interview Answer

Anonymous

Apr 11, 2018

I talked about scoping, but I wasn't sure exactly what he was looking for. He then hinted lambda functions - I explained what a lambda function was but I still wasn't sure what he was looking for. He then asked what was so interesting about closures in relation to lambda functions. I talked about memory management but it doesn't seem like that was the answer he was looking for