---
title: "Discussion on \"Introduction to Javascript's Factory Function\" | Hashnode"
description: "Discussion on \"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...\nBelow is the code snippet\nconst sudi = {\n  name: 'Sudi',\n  details(){\n      console.log(`Hello, I am ${this.na..."
url: "https://hashnode.com/posts/introduction-to-javascripts-factory-function/646dfb2bbee3c8c70e018482"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Introduction to Javascript's Factory Function](https://sudiptasaha.hashnode.dev/introduction-to-javascripts-factory-function?utm_source=hashnode&utm_medium=feed)

"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...

May 24, 2023 · 2 min read · sudiptasaha.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Sudipta Saha](https://hashnode.com/@ssudipta1989)

@ssudipta1989 · Bengaluru, India

  
[View profile](https://hashnode.com/@ssudipta1989)

Front End Developer with an interest on JS and its related frameworks.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
