The first type:
(function(){ console.log('hello world") })()The second type:
(function(){ console.log('hello world') }())The third type:
!function(){ console.log('hello world') }()The above three ways to write js self-call anonymous functions (recommended) are all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.