Factory Function
When a function returns an object, we call it a factory function. It can produce object instance without new keywords or classes.
When a function returns an object, we call it a factory function. It can produce object instance without new keywords or classes.