Using Bracket Notation to Access Object Property, How to Access Object Properties, Bracket Notation

preview_player
Показать описание
In this JavaScript walkthrough, we look at, Using Bracket Notation to Access Object Property, How to Access Object Properties, Bracket Notation. This is based on Codecademy's Learn JavaScript course, Objects section, lesson, "Bracket Notation". We learn that In order to access values in objects we can use the dot operator as we learned in the previous lesson. Another way we can access values in an object is through object bracket notation. We are able to chain an opening and closing bracket after our object name and provide the inside of the brackets with the key name in order to access the key's value. Understanding bracket notation in JavaScript objects is key in mastering JavaScript programming. Make sure to understand how we are accessing our object property values and practice using JavaScript object bracket notation and using the dot operator for accessing property values! Make sure to fully understand what is happening with our code before moving on for optimal results in your programming mastery! Thanks for watching, Using Bracket Notation to Access Object Property, How to Access Object Properties, Bracket Notation.
Рекомендации по теме