jsFactory Factory Design Pattern in JS This code sample was created for the tech article: http://dealwithjs.io/design-patterns-the-factory-pattern-in-javascript/ For running the Demo, please execute: node index.js