A factory function creates a new object and returns it. To create an object using an existing object as a prototype, use Object. construct().
Some benefits of using factory functions include:
Easier maintenance
Reduced duplication of code
Improved readability of the codebase
When you are working with a factory function, you are creating a function that runs on every item in the set that you pass in. This allows you to iterate over the items in your set and do something different for each one.
The factory function is a function that returns an object of the same type without using any of the properties or methods on that object. This can be helpful when you want to create a new instance of an object without using its constructor.
Learner's Ratings
4.9
Overall Rating
91%
9%
0%
0%
0%
Reviews
A
atul Machindra raut
5
The way he is teaching is awesome. All the topics explain well. Thank you Joel sir!
A
Akshay P
4
it was good but pls also provide captions of the vedio
D
Dravinanshu Mishra
5
Excellent course.
C
Chinna
5
Explanation is good......
A
Are you Mango
5
you can make more responsive website after leraning this . It is very easy language
K
Kishor balpande
5
The way he is teaching is awesome. All the topics explain well. Thank you Joel sir!
J
Jai Kumar
5
Its is One Of the My Best Learning Course Evevr Because this is First Website Or Channel They Are free And Easy to Learn thankyou So much For this Course.
Share a personalized message with your friends.