How to use getters and setters in Javascript / Typescript

Опубликовано: 05 Декабрь 2022
на канале: Richard Oliver Bray
317
15

Getters and setters in Javascript (or Typescript) are pretty difficult concepts to understand for people new to the language. Here I try my best to explain it.

---

☕️ Buy me a Coffee ► https://ko-fi.com/richardoliverbray
🐦 Follow me on Twitter ►   / ceiga  
Join my discord server ►   / discord  

---

00:00 Explanation of lag in video
00:15 Introduction
00:44 Getters and setters explanation
01:06 Getting and setting an object property
01:53 The get and set keywords in an object
04:29 Getters and setters in classes


#code, #webdevelopment, #javascript, #typescript, #webdev, #getters, #setters


Смотрите видео How to use getters and setters in Javascript / Typescript онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Richard Oliver Bray 05 Декабрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 317 раз и оно понравилось 15 людям.