Dot Notation vs Array Notation in JavaScript

Publié le: 01 janvier 1970
sur la chaîne: SALESFORCE PREDATOR
956
19

Dot Notation vs Array Notation in JavaScript:

We can use dot notation as well as array notation to access object properties.

The dot notation is used mostly as it is easier to read and comprehend.

Bracket notation allows us to access object properties using variable whereas dot notation does not.

Array notation is used in cases where we are not sure about the keys. For Example: There may be space in properties name.

Join Graphy/unacademy using this link https://www.graphy.com?fpr=pankaj96 and get best discounts on the courses.


Sur cette page du site, vous pouvez voir la vidéo en ligne Dot Notation vs Array Notation in JavaScript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur SALESFORCE PREDATOR 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 956 fois et il a aimé 19 téléspectateurs. Bon visionnage!