In the example above, our IIFE is invoked immediately and encapsulates references to the
document objects by passing them into the function.
You'll also notice that the function accepts the
undefined argument with isn't passed in when invoked.
myvar !== undefined.
If you liked this article, I'd be incredibly grateful if you tweeted about it.
Also, I don't send emails often but when I do, I try to fill them full of useful goodies. If you like code snippets & dev tips, join my mailing list. There's no catch but I'll probably want to tell you about any new plugins & tools I build.