Hashmap inside Hashmap javascript html5 -


problem: adding hashmap inside hashmap in html5. firstly created hashmap doesn't seem able accept, inside itself, hashmap defined neither key nor value. declared 2nd hashmap independently , tried using "connect" (console points undefined error) , tried attributing key of 1st hashmap name of 2nd hashmap. problem doesn't seem number of values (the implemented hashmap accepted values entered). there no implementation pre-defined in html5 such in java (with "put" command) connect hashmaps, pretty clueless else try (newbie, searched intensively did not found direct html5). also, there few others hashmaps included inside 1st. in advance

var hz125={}; //(1st hashmap) var dbhl90={}; // (2nd hashmap)  dbhl90 = x in hz125; //no compiling errors,              //but doesn't seem included inside 1st hashmap. dbhl90['right'] = {realfreq:'123', realloudness: ''}; dbhl90['left']= {realfreq:'121', realloudness: ''}; 

you can set 1 hashmap (actually object) inside object value:

var hz125={}; //(1st hashmap) var dbhl90={}; // (2nd hashmap)  hz125['x'] = dbhl90; 

or

hz125.x = dbhl90; 

you can't set object key (i think es6 have weakmap allow this).


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -