Tag: safe code

IIFEs and safe code

Mario Code, Tutorial , ,

IIFEs are Immediately Invoked Function Expressions. Sounds complicated, but isn’t! We begin very easy. A normal Javascript function everybody knows:

Its loaded like that into memory and…does nothing. Just sitting there. If we want it to do anything we have to start (invoke) it:

Easy. A function expression looks like this:

We can invoke a… mehr >>