title: Creating complex objects dynamically in javascript
body: <p>Is it possible to create complex objects at runtime in javascript ? If so, what is the correct syntax ?  </p>
  
  <pre><code>var food = {};
  food["fruit"]["yellow"] = "banana";
  food["meat"]["red"] = "steak";
  food."fruit"."green" = "apple";
  </code></pre>