Functions can close over variables defined in surrounding scopes. In thefollowing example, captures the variable . Wherever thereturned function goes, it remembers .