title: JavaScript object - add property without using eval?
body: <p>I have a JavaScript object that I'd like to add some properties to, but I don't know what the names of the properties are until runtime.</p>
  
  <p>Can I do this without using eval? If so, how?</p>
  
  <pre><code>var get_params = new Object();
  var params = {'name':'john', 'age':'23'}; //actually not known until runtime
  for (var i=0, len=params.length; i&lt;len; ++i ){                                                  
          get_params.p[0] = p[1]; //How can I set p[0] as the object property?
      }
  }
  </code></pre>