Javascript – Loop through array to add keys to every nth element
I have an array super = ["Month 1","22 - Feb - 2024","29 - Feb - 2024","7 - Mar - 2024", "Month 2","23 - Mar - 2024","30 - Mar - 2024","6 - Apr - 2024"]. I'd like to add the following…