Question: How can I create an (empty) object whereas the name of the object itself shall be created dynamically based on a constructed string as the object name. Is that even possible?
So far I tried to find solutions to this questions but most questions refer to how to dynamically add/change keys of an object.
What it should do is actually let `text${myVar}` = {};
where text${myVar}
shall be the name of the object taking into account the variable myVar
. So I actually want to solve programmatically what I would do manually in case text${myVar}
would be equal to dataQ25
and creating an object with let dataQ25 = {};
Thanks a lot!