119
rated 0 times
[
126]
[
7]
/ answers: 1 / hits: 59382
/ 10 Years ago, tue, december 16, 2014, 12:00:00
My requirement is to store key-value pairs in a data structure and fetch or delete the pairs when necessary using keys in JavaScript.
How can I do it in JavaScript as one does it in Java?
I have seen an answer creating an instance of hash map like:
var hash={};
Now Ie can add values in it like:
hash={ January:1,Feb:2 }
Can I insert values dynamically using keys and fetch them and also get the size of the hash map?
More From » hashmap