I have multiple booleans defined in Javascript:
On toggle I would like to set these to false or true.
var categoryAdvertising = false;
var categoryInformArtation = false;
var categoryACA = false;
var categoryEntertainment = false;
var categoryInfluencing = false;
var categoryICE = false;
var categoryCommunication = false;
var categoryParticipation = false;
What is the best way to set these variables? Using an array?
Thanx in advance
Just use an object:
To access object keys: