Twitter button not working in Random Quote Machine

Hello!
I am working on Random Quote Machine and the twitter button that i have made is not working. I have given link also but i dont know whats the problem.
This is the code:- https://codepen.io/karanatwal/pen/PKjPqy

I agree with @SkyC
But if you want a direct answer for why it isnt working as you have it now

window.open=("https://www.twitter.com");

you need to remove the equal sign

window.open("https://www.twitter.com");

and it will only go after you click next quote at least once.

thanks @SkyC and @JashuHB…the problem is solved.