I am learning javascript and this may be the main question, please help me understand below.
I create an array inside obejct as shown below to use the data later. Now I have to send the category as "Help" and should dynamically receive all its subcategories.
[
{"category":"Help","subcategory":"Email"},
{"category":"Help","subcategory":"application"},
{"category":"Help","subcategory":"Software"},
{"category":"Help","subcategory":"Hardware"},
{"category":"Request","subcategory":"Access"},
{"category":"Request","subcategory":"Remote"},
]
Thanks in advance
source
share