Random quote machine popup help

My main idea is that I want to use a random number that corresponds to a switch statement that has my quotes stored. I want the html to then show the quotes as a popup, then it lets you upload the quote to twitter. This is the most complex thing I have tried to code and I can’t even get the popup to work at all. Can anyone guide me and give me hints?

thank you for reply. popup is the css element that I am trying to tell the popup to have those qualities.

In past projects I never had to separate functions in the html with ; I would just list them one after another.

when I used
switch (new getQuote){
}
I thought that I was creating a new function called getQuote that assigns variable quote to whatever n is set to from randomNum(). and if I say getQuote(n), I would get a random quote called quote from this function.