---
title: "Discussion on \"Constructor in JS\" | Hashnode"
description: "Discussion on \"Constructor in JS\". What is Constructor in Javascript? How to use it and what is the difference between Function Constructor and Class Constructor?"
url: "https://hashnode.com/posts/constructor-in-js/6626c6fb3cdd642c480b70a0"
---

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

Discussion

# [Constructor in JS](https://frontend-mind.com/constructor-in-js?utm_source=hashnode&utm_medium=feed)

What is Constructor in Javascript? How to use it and what is the difference between Function Constructor and Class Constructor?

Apr 22, 2024 · 5 min read · frontend-mind.com  
Read the article

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

## Written by

[Przemek Szczepański](https://hashnode.com/@przemekfront)

@przemekfront · Kraków, Poland

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

Front-end Software Engineer

Front-end developer who pays special attention to the aesthetics and functionality of websites. I love playing with interesting design solutions, creating interfaces that not only work efficiently, but also attract attention with their unique design. I like to derive pleasure from it, like with my old 'Portfolio' website. After hours, I return to classic games or good movies that stimulate the imagination.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
