Dot Notation vs Array Notation in JavaScript

Published: 01 January 1970
on channel: 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.


On this page of the site you can watch the video online Dot Notation vs Array Notation in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user SALESFORCE PREDATOR 01 January 1970, share the link with friends and acquaintances, this video has already been watched 956 times on youtube and it was liked by 19 viewers. Enjoy your viewing!