1 min readJun 25, 2020
Thanks, Kunal for the nice article. I have a doubt here. In JavaScript, the Factory pattern is a design pattern to create and organize the object creation code. Here you can use the Object literal term as the first way to create the object in a basic way.