title: Want to store array as value in javascript map
body: <p>I want to create a map where key is string and value is an array Like  below .How to store a array with key as string in map</p>
  
  <pre><code>fruits : apple,orange,pineapple
  countries:usa,uk,india,australia
  cities:frankfurt,berlin,moscow
  
  var map = new Object(); 
  
  map['fruits'] = myObj1;
  map['countries'] = myObj2;
  map['cities'] = myObj2;
  
  function get(k) {
      return map[k];
  }
  </code></pre>