InterviewBuddy
All interview questions

In JavaScript, give an example of lexical closure.

Intermediate

Answer

A counter function retains its private count.