Basic Javascript (91/111) | Accessing Nested Objects | freeCodeCamp

Published: 25 November 2020
on channel: Stral Tech
499
5

Basic Javascript (91/111) | Accessing Nested Objects | freeCodeCamp

Full playlist 👉    • Basic JavaScript (1/111) | Comment Your Ja...  

"The sub-properties of objects can be accessed by chaining together the dot or bracket notation.

Here is a nested object:

var ourStorage = {
""desk"": {
""drawer"": ""stapler""
},
""cabinet"": {
""top drawer"": {
""folder1"": ""a file"",
""folder2"": ""secrets""
},
""bottom drawer"": ""soda""
}
};
ourStorage.cabinet[""top drawer""].folder2; // ""secrets""
ourStorage.desk.drawer; // ""stapler"""


https://www.freecodecamp.org/learn/ja...


On this page of the site you can watch the video online Basic Javascript (91/111) | Accessing Nested Objects | freeCodeCamp with a duration of hours minute second in good quality, which was uploaded by the user Stral Tech 25 November 2020, share the link with friends and acquaintances, this video has already been watched 499 times on youtube and it was liked by 5 viewers. Enjoy your viewing!