Menu
Hello Everyone!
I am new to JS and esp to Object Oriented Javascript. I am having to deal with some complicated JS code that involves extensive use of hashes. The idea is that the data is being accessed from some Database and stored in these hashes. Although I know that a hash is essentially a key-value pair. I am confused with the following declaration and usage of hashes.
1.
temp = aHash[“A”][ some[i] ];
returnData[temp];
var b = hash[key][“B”];
cHash = d[ some[i] ];
if(cHash[“A”])
{
doSomething….
}
Can someone please explain me above syntaxes with examples? Any help will be greatly appreciated.