Changing value of first loop in a for loop
I'm looping through an array of images and adding them to a carousel. The first image in the carousel needs to have an "active" class, but the rest needs to be without it. Currently my code looks like this
How do i make the first loop have active and the rest not?
How do i make the first loop have active and the rest not?
