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.
Nesta página do site você pode assistir ao vídeo on-line Self Invoking Function - Javascript duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Harikrishnan S 16 Setembro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 24 vezes e gostou 0 espectadores. Boa visualização!