title: How do I merge two dictionaries in Javascript?
body: <pre><code>var a = {};
  a['fruit'] = "apple";
  
  var b = {};
  b['vegetable'] = "carrot";
  
  var food = {};
  </code></pre>
  
  <p>The output variable 'food' must include both key-value pairs.</p>