title: How to create a simple map using JavaScript/JQuery
body: <p>How can you create the JavaScript/JQuery equivalent of this Java code:</p>
  
  <pre><code>Map map = new HashMap(); //Doesn't not have to be a hash map, any key/value map is fine
  map.put(myKey1, myObj1);
  map.put(myKey2, myObj2); //Repeat n times
  
  function Object get(k) {
      return map.get(k);
  }
  </code></pre>