I am currently going through 'Javascript: The good parts' by Douglas Crockford, and I'm trying to understand what a closure is exactly. It describes it as follows :
"The function object created by a function literal contains a link to that outer
context. This is called closure. "
and provides this example :
var add = function (a, b) {
return a + b;
};
However all I see here is a function literal and not a closure, if I am understanding correctly. So in its simplest form, how would a closure look like?