No BS TS #15 - Readonly and Static in Typescript Classes

preview_player
Показать описание
We can make fields in Typescript classes readonly, as well as make member fields and methods static. Let's explore some practical uses for readonly and static in classes.

00:00 Introduction
00:25 Creating The Dog Classes
00:58 Members in Constructors
02:00 Readonly Member Fields
02:26 Singletons
03:11 Static Member Fields
04:21 Static Methods
05:57 Outroduction

👉 What's my theme? Night Wolf [dark blue]
👉 What's that font? MonoLisa

💢 Watch our other videos:

Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.

#typescript #NoBSTS
Рекомендации по теме
Комментарии
Автор

By far one of the best frontend engineering video tutors on YouTube! Thank you, and please keep these videos coming, Jack!

SamInNZ
Автор

Not only great content, a great Hawaiian shirt to top it off!

nattysweg
Автор

jack talks really like an OG or a college professor. nice

pekwind
Автор

Static is needed for the singleton design pattern

codezero
Автор

can anyone tell me why we use "instance" keyword at 2:56. what "instance" keyword do ?

nightfury
Автор

Can we have static method in interface contract?

adi_sekar
Автор

Being functional programmer, I rather read only be the default and have to specify mut or mutable explicitly. I think Rust is like this

codezero