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

Published: 22 March 2022
on channel: 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.


On this page of the site you can watch the video online Understanding JavaScript Getter Method, Using JavaScript Getters Method, Codecademy Learn JavaScript with a duration of hours minute second in good quality, which was uploaded by the user We Will Code 22 March 2022, share the link with friends and acquaintances, this video has already been watched 269 times on youtube and it was liked by 5 viewers. Enjoy your viewing!