Hi everyone, I have just started so I'm still lost and new to this.
I’m working on a "quiz app" like guess the animal's name for kids and am having trouble with displaying the correct answer (correct name of the animal). Right now, the app displays the index (e.g., 1, 2, 3, 4) instead of the actual animal names (like "Cat", "Dog", etc.). How can I resolve this? And make it random every time a user play? Your help is greatly appreciated.
Thanks for your response. I followed your suggestion and used the correct global variable associated with each button (e.g., Button1), but when I do this, it displays an animal name which isn't the correct answer. The displayed animal name doesn't match the correct answer. The issue now is that I'm unable to pull the correct answer based on the button clicked, even though I'm referencing the correct variable for each button. What could I do to fix this and ensure the correct answer is shown?