// STATEFUL var number = 1; var statefulIncrementingFn = function(){ number += 1; } // STATELESS var number2 = 1; var statelessIncrementingFn = function(n){ return n + 1; }
By ayana28