How to create a property of an object whose name contains a variable? For example:
test={test: 'text'} But here you need to create another property depending on the value of the variable.
test.значение = ещё одно значение; How to do this?
How to create a property of an object whose name contains a variable? For example:
test={test: 'text'} But here you need to create another property depending on the value of the variable.
test.значение = ещё одно значение; How to do this?
Source: https://ru.stackoverflow.com/questions/88908/
All Articles