This example shows how you create a closure in JavaScript it uses an alert function that can be incremented and reused/passed around.
Read more…