Tag Archives: dot

Dot and Bracket Notation in JavaScript Object – Learn from Tutorial

Dot and Bracket Notation in JavaScript Object In JavaScript we can access the properties of object using dot notation(person.first_name) and bracket notation(person[first_name]).But what’s the difference between these two notations and when to use which one ?Just stay here with me for another 20 mins and I promise you will never forget this concept. First we…

Read More

Difference between accessing the JavaScript Object properties using dot notation and bracket notation – Learn from Tutorial

Difference between accessing the JavaScript Object properties using dot notation and bracket notation In JavaScript we can access the properties of object using dot notation(person.first_name) and bracket notation(person[first_name]).But what’s the difference between these two notations and when to use which one ?Just stay here with me for another 20 mins and I promise you will…

Read More

Bracket notation Vs dot notation in JavaScript objects – JavaScript Dev Feed

Bracket notation Vs dot notation in JavaScript objects Hello Devs, in this article, I will walk you through the differences between using dot notation and bracket notation in JavaScript objects. Consider the following object. let animalsList = { cow:{ legs: 4, sound: “moo”, }, cat:{ legs: 4, sound: “meow”, }, }; Enter fullscreen mode Exit…

Read More