Call object property with variable
<p>This code doesn't work quite as i want to.  </p>

<pre><code>var csd = {large10x10: 0}
var nextitem = "large10x10";
buildings.push(nextitem,"black",a);
csd.nextitem += 1;    
</code></pre>

<p>at <code>csd.nextitem +=1</code> I want it to add 1 to csd.large10x10. How do I do that? Or what do I google to find the answer?</p>

<p>Thanks</p>
