[Design Patterns in Javascript] The Factory Design Pattern in Javascript

4 years ago
5

The Factory Design Pattern is used to create objects without having to specify the exact class. In our Javascript example, we get user input from the console, and then we use a factory to decide which class to instantiate.

Want to move out of the beginner and intermediate programming levels into being more advanced? One of the things that will help get you there is learning design patterns.

This is the second episode in a new series we are doing on design patterns in javascript.

We are putting out 2+ videos per day, so subscribe to our channel if you want to seriously level up your development game. 👊 Helpful Links 👊

Free E-book:
*Power Portfolio* - How to stand out... even if you're just getting started: https://bit.ly/2ylvdcb

Building a Messenger app in Rails 6: https://www.youtube.com/watch?v=s3CmHhDjuWc&t=18s

Action Cable Basics in Rails 6: https://youtu.be/t9iubpbqmnM

Building a Link Shortener with Rails 6 (playlist): https://www.youtube.com/playlist?list=PLjItgYqIzJ9WGy9WMf-44DXHB_7aWwJMc

Building a Stock Market Tracker with React JS (playlist): https://www.youtube.com/playlist?list=PLjItgYqIzJ9VOBgwZ82D9kjQ_QtM5R4u5

Loading comments...