Property accessors:
Dot notation vs Bracket notation
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...
devangibhutiya.hashnode.dev4 min read