how to use the window object (or better way) to make dynamic property names
<p>I read <a href="http://stackoverflow.com/a/5117153/1252748">here</a> that the window object can be used to dynamically make a property name within an object. What is the way this is done</p>

<p>I have a function like</p>

<pre><code>function storeValues(){

    var info = {};
    $('.class1').each(function(index1, value1){
        $('.class2', $(this)).each(function(index2, value2){

            //so here I'd like to add a string to the property name
            //like 'param-' and 'detail-' so I could end up with a 
            //structure like 
            //info.param_0.detail_0
            //then
            //info.param_0.detail_1
            //info.param_1.detail_0
            //info.param_1.detail_1
            //info.param_1.detail_2
            info.'param_'index1.'detail_'index2 = $(this).find('.desired_input').val();

    });
}
</code></pre>

<p>Is this possible. Or is there a smarter way of doing it?</p>
