http://imanas.shanghai.nyu.edu/~jhr360/week4/
Through this exercise I became more comfortable with the button function in JavaScript as well as if/else loops, which I had seen before in Python but had trouble understanding how to use them in JS. Formatting the images in CSS was easy enough with <div> tag, but I initially had no idea where to begin with getting the button to work. I first set up a counter that would increase by 1 every time the button was clicked in order to keep track of which panel was active, and made sure to log the counter into the console. I then used if/else loops to switch between opacities based on the counter. However, I was not able to solve an issue I have with the opacities not changing when the button is clicked only once.