JS practice making slider- This was my fourth attempt to create a simple JS slider. I created two different functions, one for the next button and one for the previous button. But each time I would click on either button, it would bring me back to the first image. I couldn't figure out why until I realized that the order of the img.src should come after the conditional statement. It finally rotates images properly. 