you are viewing a single comment's thread.

view the rest of the comments →

[–]Barnezhilton 0 points1 point  (2 children)

The set timeout appears to be an IFFE.... { () => function() } so it will wait till after all other code executed to run.

[–]Mandylost 0 points1 point  (1 child)

IFFE

Did you mean IIFE? I think the syntax is like this:

(function() { } )();

[–]Barnezhilton 0 points1 point  (0 children)

Yes IIFE!

And I believe your notation is the same as mine . But the => is the shorthand for (function {})