title: how do add to a key value to javascript object
body: <p>I am trying to learn JS.  It seems simple but I am not sure how to do this.</p>
  
  <p>having this javascript object based on this good 
  <a href="https://stackoverflow.com/questions/688097/objects-vs-arrays-in-javascript-for-key-value-pairs">thread</a></p>
  
  <pre>var people = {
    1: { name: 'Joe' },
    2: { name: 'Sam' },
    3: { name: 'Eve' }
  };
  </pre>
  
  <p>How do I add the following value <pre>4: { name: 'John' }</pre></p>
  
  <p>To get name Eve I write</p>
  
  <pre> people["1"].name</pre>