djmonta
12/13/2018 - 9:17 AM

Revealing Module Pattern described in this viedeo https://www.youtube.com/watch?v=pOfwp6VlnlM

Revealing Module Pattern described in this viedeo https://www.youtube.com/watch?v=pOfwp6VlnlM

var people = (function() {
  var name = 'Will';
)}()
// This is the way to declare a object and execute the anonymous function right away.
// variables don't expose outside the object till returning anything.