Pergunta de entrevista da empresa Khoros

How does lexical scope work in JavaScript? Explain the concept of closure, and provide an example.