calling anonymous function while declaring it code example
Example: calling anonymous function while declaring it
var step = (function(){
// this code is executed immediately,
// the return value is assigned to `step`
})();
var step = (function(){
// this code is executed immediately,
// the return value is assigned to `step`
})();