After having some years of experience working with JavaScript, I realised that a person who loves working with JavaScript or wants to establish his/her career in JavaScript must have knowledge about some of the advanced concepts. To be honest, when I started my career, I did not know any of these concepts, but I learnt them over a period of time.

IIFE — Immediately Invoked Function Expressions

As the name suggests, an “Immediately Invoked Function Expression” is a function which is executed immediately as soon as it is created. There cannot be separate invocation call for such function after its execution is completed. The main benefit of using an IIFE is that it does not pollute the global object. The variables defined within an IIFE cannot be accessed in outer scope. Syntax for defining an IIFE is as below:

#javascript-tips #javascript

Skills Recommended for a JavaScript Enthusiast
3.40 GEEK