136
rated 0 times
[
137]
[
1]
/ answers: 1 / hits: 35469
/ 12 Years ago, wed, december 5, 2012, 12:00:00
Suppose we are only given
var obj = {};
var propName = foo.bar.foobar;
How can we set the property obj.foo.bar.foobar
to a certain value (say hello world)?
So I want to achieve this, while we only have the property name in a string:
obj.foo.bar.foobar = hello world;
More From » string