Demystifying JavaScript Closures, Callbacks and IIFEs

Yes I agree with you on this - it’s important that if you just return a variable then it’s the value of the variable that is returned and not the variable itself, which is what happens if it is returned inside a function. My example wasn’t a great example, sorry if it confused anybody.

DAZ