The tutorial was informative and extremely helpful, thank you! I have similar issue as Dyane - for those of us newly diving into Js, we don't understand what "turn variables into an array and iterate over each element, repeating same step for one button/modal for multiple" really means. A description is helpful.
I too read over the page on the link you provided, but as with most user forums like git and stackoverflow, the answer assumes the person asking for help already has intimate knowledge of the scripting language - which if we did, we could probably figure things out for ourselves. It's akin to a "you need I.D. to get I.D." situation... If I had I.D., I wouldn't need to get an I.D.
I understand how to declare an array, but that doesn't help if I'm not sure how to trigger any other than the first item.