TypeScript: readonly vs. const

From The TypeScript Handbook:

The easiest way to remember whether to use readonly or const is to ask whether your using it on a variable or a property. Variables use const whereas properties use readonly.

Questions, comments, and responses are welcomed and appreciated.

Leave a Reply