I\'m a beginner with JavaScript so please be patient =)
I am trying to write a function that counts the number of times it is called. What I have so far is a functi
var increment = function() { var i = 0; return function() { return i += 1; }; }; var ob = increment();