In this article, we will learn how to execute function immediately in Javascript. To run function directly in JavaScript after defining it, you just have to wrap the function in parenthesis () and invoke it.
In this article, we will learn how to execute function immediately in Javascript. To run function directly in JavaScript after defining it, you just have to wrap the function in parenthesis () and invoke it.