Keys with Constants and Symbols

In this lesson, we will study how to use keys with constants and symbols.

We'll cover the following


Version 2.7 brings the possibility of accessing a property using a constant and symbol. This is a minor improvement because, before 2.7, it was possible to access (read and write) a constant or symbol, but not to define a field in an interface or type.

Get hands-on with 1200+ tech skills courses.