So, I am working on a wheel of fortune. I have a const list with a lot of questions. Underneath the const list is a randomizer that picks a random question.
The thing is that on the wheel of fortune segments it displays the random question but I want to show the const name.
After it stops spinning it indicates the segment and make an alert with the question.
const questioncard = ['question1','question2','question3']
const randomquestioncard = questioncard[Math.floor(questioncard.length * Math.random())];