Introduction to Javascript's Factory Function
"A factory function is a function which returns an object". Yes, it's a function that returns an object. It's that simple. Let's dive in...
Below is the code snippet
const sudi = {
name: 'Sudi',
details(){
console.log(`Hello, I am ${this.na...
sudiptasaha.hashnode.dev2 min read