Studying about closures, I looked at the Developer\'s Mozilla article about it and saw the code below:
var counter = (function() { var privateCounter = 0;