Quote Generator - Issue with Twitter Clicking

I cannot figure out why my twitter click event does nothing!

Can anyone take a look at my codepen and see if it’s something stupid.

Even if I change the function to just open a new window - nothing happens when the button is clicked.

Thanks for any guidance. Codepen: https://codepen.io/katedexter/pen/dRaKOp

I noticed you’re using codepen which requires you to open in a new tab, have you considered creating a link first and then styling it like a button?