Khoros interview question

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