---
title: "Discussion on \"3. About JS Objects...\" | Hashnode"
description: "Discussion on \"3. About JS Objects...\". As of ES5.1 classes did not exist similar to other programming languages like C++ or Java.\nSo how do we create objects?\n\nVia literals \n\nvar obj = {};\nobj.myProperty = \"Hello literal object!\"\nconsole.log(obj.myProperty);\n\nVia constructor functions\n\nIt..."
url: "https://hashnode.com/posts/3-about-js-objects/5e273a2c7a1d3fcc5903458e"
---

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

Discussion

# [3\. About JS Objects...](https://diganta.hashnode.dev/3-about-js-objects?utm_source=hashnode&utm_medium=feed)

As of ES5.1 classes did not exist similar to other programming languages like C++ or Java. So how do we create objects? Via literals var obj = {}; obj.myProperty = "Hello literal object!" console.log(obj.myProperty); Via constructor functions It...

Jan 21, 2020 · diganta.hashnode.dev  
Updated Jan 25, 2020  
Read the article

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

## Written by

[Diganta Mukherjee](https://hashnode.com/@diganta)

@diganta · Bangalore

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

Software Developer and Programming Enthusiast

I am a software developer by profession. I have been growing in the world of Software development for quite some time now and have navigated my way through various technologies, stacks, development methodologies, frameworks, patterns and each of them were unique experiences. Its exciting to be part of this evolution that is not only catering to solving day-to-day problems but is creating scope for the scientific world to develop by solving its "logico-mathemetical" problems. Cheers!

## Responses 1

Markdown supported · ⌘↵ to post

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

[Mar 6, 2023](https://hashnode.com/posts/3-about-js-objects/5e273a2c7a1d3fcc5903458e/comment/64055ddb87595bb6fc886612)

Hey this article is very good. I was trying to find the relationship between **proto** and prototype, your post helped me a lot. Please keep sharing more knowledge on JavaScript 🤟

[Diganta Mukherjee](https://hashnode.com/@diganta)

[Mar 6, 2023](https://hashnode.com/posts/3-about-js-objects/5e273a2c7a1d3fcc5903458e/comment/64055ddb87595bb6fc886612#reply-64056d79a99352c3e047b493)

Hi Sudipta, I am glad you found this article useful. There are more articles in this series you acn check out. Will surely keep adding more simplified explanations.
