JavaScript for Beginners #44 Objects Dot Notation vs Bracket Notation

preview_player
Показать описание
Here, we will explore the difference between using bracket notation and dot notation with objects.

0:00 Setting up our object
1:05 Viewing the object in the console
1:42 Using the dot notation to retrieve a property value
3:20 Using the bracket notation to retrieve a property value
4:10 Adding properties into objects
5:06 Using undefined to set the value of a property
6:46 Using the bracket notation with an expression
10:13 Using bracket notation for property names with spaces
12:50 Setting up a for loop
14:36 Creating a long string for our object

JavaScript Playlist:

MDN Objects:

Node JS:

Visual Studio Code:
Рекомендации по теме
Комментарии
Автор

I would say this is the best explanation about objects dot and bracket notation!! Thank you!

arielc.
Автор

definatelly the best explanation about objects dot and bracket notation

sandoxs
Автор

Excellent tutorial. Very detailed and articulate.

suzannecurtis
Автор

Only suggestion I have is to be carful with your object keys 🔑 and the names you give them. Some less advanced folk will see that state key and freak out lol

JimmysJohn
Автор

and just in case anyone is wondering, there is indeed a doctor called Sarah Davis in Texas.

BaMBZ
Автор

You buy a course and they just skim through the basics meanwhile here it is free.

saimori