Week 3 – JavaScript Excercise – Jamie (Ziying Wang)

link: http://imanas.shanghai.nyu.edu/~zw1745/cat/cat.html

I went to find another cat picture!

It went pretty smooth when I link the first two buttons with the js functions to flip the cat. But I couldn’t figure out how to change the text in the caption function.

Through searching online, I discovered that I need to use a .innerHTML in my function to replace the text with new ones.

Leave a Reply