Html – How to use forEach loop to automate querySelector for elements in an array?
I have an array with object that looks like this: const boxes = [ {jsName: '.js-box1', boxName: 'upperLeft'}, {jsName: '.js-box2', boxName: 'upperCenter'}, {jsName: '.js-box3', boxName: 'upperRight'}, {jsName: '.js-box4', boxName: 'centerLeft'}, {jsName: '.js-box5', boxName: 'centerMiddle'}, {jsName: '.js-box6', boxName: 'centerRight'}, {jsName: '.js-box7',…