No BS TS, 15 Readonly and Static in Typescript Classes
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 Code: If you liked this video, buy me a coffee What s my theme Night Wolf dark blue What s that font MonoLisa Jack is also on the React Round Up podcast: Don t forget to subscribe to this channel for more updates: Discord server signup: ht. .., JackHerrington, typescript, typescripttutorial, ReadonlyandStaticinTypescriptClasses, NoBSTS15, Typescriptreadonlyandstaticclasses, typescriptstaticmethods, typescriptstaticmemberfields, typescriptsingletons, typescriptsingletonclasses 20210513 nkpPOVUHT1k
|
|