Image may be NSFW.
Clik here to view.
Clik here to view.

A blog post to help understanding JavaScript function and closure with an example and suggested video.
Image may be NSFW.
Clik here to view.