Three ways to write js self-call anonymous functions (recommended)
The first type: (function(){ console.log('hello world") })() The second type: (function(){ console.log('hello world') }()) The third type: !function(){
2025-08-09














