Both options are possible, both allow a recursive call (which is the point in the IIFE naming convention).
The only difference between the two is that the second does not pollute the external namespace with the function name, which is visible only from the function. Of course, the consequence is that you cannot call the function from another place.
source share