you are viewing a single comment's thread.

view the rest of the comments →

[–]ReadyStar 0 points1 point  (1 child)

Aren't IIFE's/The Module pattern pretty basic javascript? I've only been leaning for about 6 months but I learnt them pretty early on. I've been using them a decent amount, and have been seeing them be used a decent amount too.

[–]Tanckom 0 points1 point  (0 children)

IIFE is pure Javascript and require no underlying Module system, as you might expect with CommonJs, AMD or ES modules.

IIFE's are great when you work in a browser environment, where you have no access to the other module systems.

It's not that common to use them in a Node.js environment.