What is a closure in javascript

Once, I was asked in an interview, how to define a closure in Javascript. I was lost at that time. I thought it was somehow like an anonymous function.
I was wrong. It turns out that I hadn't yet written a closure manually. I later looked up for the definition of closure in js. It turns out a closure is a function in which another function defined within it is returned.