---
title: "Discussion on \"Property accessors: \nDot notation vs Bracket notation\" | Hashnode"
description: "Discussion on \"Property accessors: \nDot notation vs Bracket notation\". There are two ways to access properties: dot notation and bracket notation.\nBoth notations can access object properties. But the question is often which one should I use 🤔.\nconst obj = {\n  name: 'value'\n};\n\n// Dot Notation\nobj.name; // 'value'\n\n// B..."
url: "https://hashnode.com/posts/property-accessors-dot-notation-vs-bracket-notation/6413fe8fb5183a7f6effc097"
---

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

Discussion

# [Property accessors: Dot notation vs Bracket notation](https://devangibhutiya.hashnode.dev/property-accessors-dot-notation-vs-bracket-notation?utm_source=hashnode&utm_medium=feed)

There are two ways to access properties: dot notation and bracket notation. Both notations can access object properties. But the question is often which one should I use 🤔. const obj = { name: 'value' }; // Dot Notation obj.name; // 'value' // B...

Mar 17, 2023 · 4 min read · devangibhutiya.hashnode.dev  
Read the article

## Written by

[Devangi Bhutiya](https://hashnode.com/@Devangi)

@Devangi

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

The web is our playing field.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
