Problem quote generator

Hello, i just did the project on atom editor which worked, but when i copied the same thing on code pen, i am not getting the clickable button to work. Please help me. Here is the link to my code pen
https://codepen.io/niranjan144/pen/PJVppr/?editors=1010

Thank you, It Worked!.