TypeScript and the ReadOnly option
When it comes to TypeScript, there is yet another modifier we haven't touched. This is readonly, which can be used to make fields read-only.
Meaning we are not allowed to change them after they initialize.
To demonstrate how it works, we'll look at h...
h.daily-dev-tips.com3 min read