Live Chat Icon For mobile
Live Chat Icon

Does JavaScript support hashtables/ hash tables or dictionary type data structures?

Platform: ASP.NET| Category: Client Side Scripting

All Objects in JavaScript implicitly support hash table like syntax by virtue of behaving as Associative Arrays. Properties of an object can be accessed in 2 ways as shown below: = value;
object['property'] = value;

So, when used in a hash table like syntax as shown above, you will be simply creating dynamic properties and assigning values to those properties.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.