I am learning javascript and I can't understand what is the purpose of anonymous function in JS, Why we use them ?
I found in many tutorials that anonymous function is used to hide local variable.
I am learning from MDN : and they said :
"a way of "hiding" some local variables — like block scope in C"
Can explain me this please ?