Ice Factory Pattern in JavaScript

Class in JavaScript was so weird and we can accidently broke our code easily, then I found an article that explain an idea about pattern that can be an alternative for JavaScript Class for some cases, it called Ice Factory Pattern that founded by Bill Sourour Basically, the idea of…