I want to declare a hashmap in javascript with <String, String array> instead of <String,Integer>. How can that be done ?
I want to declare a hashmap in javascript with <String, String array> instead of
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you plan to use a javascript Array object, be aware that an array index can only be accessed via integers.
and
The above would work in javascript, but
var arractually is not an array object anymore. You cannot sort it, for example.So for you hashmap you could do