title: What is the equivalent of C++ std::unordered_map<char, int> in Javascript?
body: <p>So I am trying to map the number of times a char appears in a string. I know that in C++ it would be.</p>
  
  <pre><code>std::string str = "AbBAaaaa";
  std::unordered_map&lt;char, int&gt; myMap;
  
  for(auto i = str)
  {
     ++mymap[i];
  }
  </code></pre>
  
  <p>How would I translate this to JavaScript?</p>