Normal syntax of IIFE
π First add ( ) to a function then
π Declare a empty ( )
When you want to use 2 IIFE then you have to add- ;
✅in the end of function declaration
πWithout adding in the end of a function declaration otherwise each function don't know where to stop
Let add a parameter to it and call it
π here I add a parameter called name then call with a argument- "Please"
π Its a named iife because I give a name to this function i.e. chai π
Comments
Post a Comment