Help with escaping quotes

I think I am struggling to understand when to escape. I thought I escaped my quotes correctly in this but it appears the quote is still messing up my code, making it so the code no longer works. I would appreciate any help I could get. Here is my code, the button is supposed to display the random quotes. :

You need to review the following challenge. If you are using single quotes for your strings, then you will have to escape the single quotes if actually want to display the single quote in your string. Otherwise, you are closing off the string prematurely.

Thank you very much! So, if I am using single quotes, how am I closing off the string early? I guess thats the part I am struggling with.

Nevermind, I figured it out, thank you very much!