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: https://github.com/jherr/no-bs-ts/tre...
If you liked this video, buy me a coffee! https://www.buymeacoffee.com/bluecoll...
👉 What's my theme? Night Wolf [dark blue]
👉 What's that font? MonoLisa
👉 Jack is also on the React Round Up podcast: https://devchat.tv/podcasts/react-rou...
👉 Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
👉 Discord server signup: / discord
💢 Watch our other videos:
💟 Hacking your Github contribution graph: • Hacking Your Github Contribution Grap...
💟 More Typescript videos: • JavaScript to TypeScript: Beginner to...
Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.
#typescript #NoBSTS