Javascript return with colon
This is the Revealing Module Pattern. The returned object contains references to the functions defined inside the IIFE. So the functions defined inside are private to the anonymous function. But if you want to use the inner functions outside, you can use the returned object. The value of Test will be var Test = { … Read more