The advantage of using an immediately invoked function in javascript, as opposed to a regular function call, is that you can call this function at runtime.
This means you don't have to wait for the user to interact with your application in order for the function to be called. Specifically, your app simply has to be loaded onto your browser and boom your desired function is called.
I'm excited to see how you all integrate this piece of code into your work.
Best,
Fido
-----------------------------------------------------------------------------------------------------
Book a private technical consultation 💻:: https://selftaughthustle.net
Follow me on instagram 📸 : @selftaughthustle
Build a software solution for your business entity 💼:: https://guavalabs.io
Check out Guava Lab's YouTube 📺:: https://www.youtube.com/channel/UCHa8