i know how to run the script by itself by using this syntax (function(){})();
, please notice my example, there is no name assigned to that anon function. the question is, how do i make recursive function with an unamed function?
(function(){
if(i < 3){
// how to call it self without function name?
}
})();
i always give anon function a name and call itself in recursive function. but this time i want to know if it's possible to call itself without a name.