Problem with my magic 8 ball style project

I changed the code on the magic eight ball project so it would be a fortune teller. I put it on my wix site but once I got it to print the answer in the text box it only gives me the last answer. It is no longer picking a random number and giving me random answers, only the one answer every time. Any help will be much appreciated.

Hello, @net3367013602.

Welcome to the forum!

In order to be of any help, we will need to see your code.

Hard to tell for sure from the screenshot, but it looks to me like you have your assignment to your page element occurring inside your switch statement as the last line in case 7:. That line should be outside the scope of your switch. The only value that can be assigned currently is for case 7:.

1 Like

Thank you. You’re awesome

1 Like