Defining Computed Members
Learn how to create and access computed fields in JavaScript with examples.
Dynamic names for class members
Sometimes, we like to give dynamic names to members of a class, that is, to fields, properties, and methods. The approach to achieve this is also useful as a workaround to provide arbitrary names for members, bypassing the language’s restriction on making members with only alphanumeric characters.
Recall using special method names like Symbol.search
and Symbol.iterator
in Symbol.search and ...
Access this course and 1400+ top-rated courses and projects.