Highlighted text I'm currently learning and I'm interested in generating 100 CSS classes dynamically.
I'd like to achieve something similar to this:
for (i=0; i<100; i++) {
// generate CSS class
const newBackgroundColor = dynamicBackgroundColor();
const height = '100%';
const width = '0%';
// assign all 3 attributes to the newly generated CSS
}
// Later on, I plan to utilize these 100 CSS classes for 100 dynamically created divs.