Function with a state
An example showing how to create function with a state using Tizen 2.3.
12345678910111213var functionWithState = (function() {var state = 0;return function() {return state++;};}());functionWithState(); // 0functionWithState(); // 1functionWithState(); // 2functionWithState(); // 3functionWithState(); // 4