How to change the type properties?

I have a object
obj = {
 test: 'test'
};


I'm trying to ask here obj.test.one = 45;
and I get an error
TypeError: can't assign to properties of ...
July 4th 19 at 23:21
1 answer
July 4th 19 at 23:23
Solution
//Property stores the string test
obj = { test: 'test' };
//Now we say that there the object is stored
obj.test = {};
//well, everything
obj.test['one'] = 45;
Cool, you helped me out:) - dahlia_Bog commented on July 4th 19 at 23:26

Find more questions by tags JavaScript