---
title: "Discussion on \"Classes\" | Hashnode"
description: "Discussion on \"Classes\". JavaScript Classes are templates for JavaScript Objects. Use the keyword class to create a class. A JavaScript class is not an object.\nWe have to always add a method named constructor() .\nBefore classes, we used constructor functions to do OOP in Jav..."
url: "https://hashnode.com/posts/classes/64ed813e1b12fc8d0d37ed27"
---

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

Discussion

# [Classes](https://twinkalp10.hashnode.dev/classes?utm_source=hashnode&utm_medium=feed)

JavaScript Classes are templates for JavaScript Objects. Use the keyword class to create a class. A JavaScript class is not an object. We have to always add a method named constructor() . Before classes, we used constructor functions to do OOP in Jav...

Aug 29, 2023 · 5 min read · twinkalp10.hashnode.dev  
Read the article

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

## Written by

[Twinkal](https://hashnode.com/@twinkalp10)

@twinkalp10

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
