The function definition is inside the parenthesis () and another parathesis () is put after the definition.
What is the use?
You can run only once. You could have no return value.
What is the scope?
The scope of the variables stays inside the function itself. That is there is no need to specifically mention let, var and const to have scope.
On this page of the site you can watch the video online Self Invoking Function - Javascript with a duration of hours minute second in good quality, which was uploaded by the user Harikrishnan S 16 September 2022, share the link with friends and acquaintances, this video has already been watched 24 times on youtube and it was liked by 0 viewers. Enjoy your viewing!