Understanding JavaScript Getter Method, Using JavaScript Getters Method, Codecademy Learn JavaScript

Publié le: 22 mars 2022
sur la chaîne: We Will Code
269
5

In this lesson we look at, Understanding JavaScript Getter Method, Using JavaScript Getters Method, Codecademy Learn JavaScript. This is based on Codecademy's Advanced Objects section, lesson, "Getters". In it, we learn the importance of understanding JavaScript Getters. We learn that Getters are a type of method that will get and return the internal properties of our objects. We also learn that we can use Getters for more! We learn that getters can perform actions on data when getting properties from our objects. We also learned that getters can return to us different values using conditionals. Using getters allows easier more readable code for other developers working on the project. Properties are not able to share the same name as our getter/setter function. Keeping these things in mind when learning about getter methods in javascript will help you master getter methods and setter methods. Make sure to practice using getter functions in your code to truly see how it works with your code. Practice using getter methods in JavaScript and practice using different data types to get comfortable writing JavaScript getters and setters.


Sur cette page du site, vous pouvez voir la vidéo en ligne Understanding JavaScript Getter Method, Using JavaScript Getters Method, Codecademy Learn JavaScript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur We Will Code 22 mars 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 269 fois et il a aimé 5 téléspectateurs. Bon visionnage!