---
title: "Discussion on \"Create objects using class, constructor function, Factory function in JavaScript\" | Hashnode"
description: "Discussion on \"Create objects using class, constructor function, Factory function in JavaScript\". in javaScript, you can instantiate an object using three different method\nCreate objects using class\nclass Employee {\n\n    constructor(name,age,sex)\n    {\n        this.name = name;\n        this.age  = age;\n        this.sex = sex;\n    }\n\n}\n\nvar employ..."
url: "https://hashnode.com/posts/create-objects-using-class-constructor-function-factory-function-in-javascript/5fa99b8104e4a94a40f0d22b"
---

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

Discussion

# [Create objects using class, constructor function, Factory function in JavaScript](https://ahmednour.hashnode.dev/create-objects-using-class-constructor-function-factory-function-in-javascript?utm_source=hashnode&utm_medium=feed)

in javaScript, you can instantiate an object using three different method Create objects using class class Employee { constructor(name,age,sex) { this.name = name; this.age = age; this.sex = sex; } } var employ...

Nov 9, 2020 · 2 min read · ahmednour.hashnode.dev  
Read the article

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

## Written by

[Ahmed Nour](https://hashnode.com/@AhmedNour)

@AhmedNour

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

programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
