This an array
ARRAY = ["A","B","C","D","E"];
var mlength = ARRAY.length;
Depending on mlength the length of DATES must be declared. Here the length is 5. Hence the array DATES must be var DATES = [[], [], [], [], []]; similarly if array ARRAY length is 3 then var DATES = [[], [], []]
This is static declaration. How do I declare it based upon the array ARRAY length?