Dot Notation vs Array Notation in JavaScript

Опубликовано: 01 Январь 1970
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн Dot Notation vs Array Notation in JavaScript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь SALESFORCE PREDATOR 01 Январь 1970, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 956 раз и оно понравилось 19 зрителям. Приятного просмотра!