How to use getters and setters in Javascript / Typescript

Published: 05 December 2022
on channel: 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


Watch video How to use getters and setters in Javascript / Typescript online without registration, duration hours minute second in high quality. This video was added by user Richard Oliver Bray 05 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 317 once and liked it 15 people.