title: How to link an image to a string and call it when that string is called?
body: <p>I am working in JavaScript. I have two variable arrays. The first array consists of strings, the second array consists of images that correspond to each of those strings. My code calls a string from the first array at random, and now I want to link my image array such that the image associated with that randomly selected string is called as well. I figured out how to call an image from the second array at random, but I'm struggling to get it to align with the random selection of the string from the first array. I suspect this is a pretty simple fix, but I am very new to all this and any help is most appreciated!</p>