JavaScript Setter Methods Explained, Examples of Setter Methods in JavaScript, Codecademy Learn JS

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=SNh4i-nrDo4



Duration: 4:10
93 views
3


In this lesson we take a look at JavaScript Setter Methods Explained, Examples of Setter Methods in JavaScript, Codecademy Learn JS. This is based on Codecademy's Learn JavaScript course, Advanced Objects section, lesson, "Setters". In it we learn how to properly set up a setter method. We learn that we use setter methods to be able to reassign values of specific properties within our objects. We are also taught that similar to getter methods, setter methods allow us to check input and perform certain actions on properties. They also help us display clear intention for how our object should be used. We are reminded that, nonetheless, even having a setter method, it is still a possibility to directly reassign properties, so we must always be careful. Learn about getters and setters is important for anyone learning JavaScript. Knowing both getters and setters is important so you know how your object should be behaving and it also allows other developers to easily understand what your objects do. Make sure to practice using getters and setters by making your own. Make various objects with different properties, getter and setter methods included. Make sure to understand getters and setters in javascript before moving on from this lesson.




Other Videos By We Will Code


2022-03-27JavaScript Class Methods, How Methods Work in Classes, Learn JavaScript, Codecademy Classes in JS
2022-03-26Learn to Create Class Instances with JavaScript, Instantiate a Class in JavaScript Codecademy JS ES6
2022-03-25How The JavaScript Constructor Method Works, JavaScript Classes and Constructor Method, Codecademy
2022-03-25Intro to JavaScript Classes, What are Classes in JavaScript, Use JavaScript Classes, JS Codecademy
2022-03-25Learn Intermediate JavaScript on Codecademy, How to Learn Intermediate JavaScript, Course Overview
2022-03-24Advanced Objects Review, Learn JavaScript Codecademy 2022 How to Program with JavaScript Full Course
2022-03-24Using Built-in Object Methods in JavaScript, Codecademy's Learn JavaScript Built-in Object Methods
2022-03-24Destructured Assignment Explained, Learn JavaScript ES6 Destructured Assignment on Codecademy JS ES6
2022-03-24Property Value Shorthand, Advanced Objects in JavaScript, Codecademy Learn JS, ES6 Destructuring
2022-03-23What are Factory Functions, How to Create Factory Functions in JavaScript, Codecademy's Learn JS
2022-03-23JavaScript Setter Methods Explained, Examples of Setter Methods in JavaScript, Codecademy Learn JS
2022-03-22Understanding JavaScript Getter Method, Using JavaScript Getters Method, Codecademy Learn JavaScript
2022-03-22How Privacy Works in JavaScript, Codecademy Learn JavaScript Object Privacy, Object Property Privacy
2022-03-21How Arrow Functions And this Work In JavaScript, Codecademy's Advanced Objects, Free JavaScript Tips
2022-03-21Learn How The this Keyword Works in JavaScript, Advanced Objects on Codecademy, Learn JavaScript
2022-03-21Learn JavaScript on Codecademy, Objects Section, Review Lesson, JavaScript Object Review, Learn JS
2022-03-21My Newest PS5 Game 2022, Plague Tale Innocence Walkthrough, Ch 1 The de Rune Legacy Beginners Guide
2022-03-20Looping Through Objects in JavaScript on Codecademy's Learn JavaScript, How to Loop Through Objects
2022-03-20Inner Self-Healing, Zen Instrumentals, Deep Calm Meditation Music to Relax, Sounds for Healing
2022-03-19JavaScript Objects Pass By Reference, Codecademy, Passing Variables Assigned to Objects as Arguments
2022-03-19Trippy Music Instrumentals, Trippy Relaxing Music to Listen To, Calm Uplifting Beats for Sleep



Tags:
Coding
ES6
JS
JavaScript
Programming
Tutorials