This is a beginner's question and the context doesn't really matter, and neither whether it makes sense at all.
I want to create class properties with dynamic names within a method of the class. Essentially something like this (the code does not work, of course):
class Trial { set_dynamic_property(name, value) { this.setAttribute(name, value) } } How do I achieve this?