Help with escaping quotes

Help with escaping quotes
0.0 0

#1

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. :https://codepen.io/jlayton75/full/mxqbVo


#2

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.


#3

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.


#4

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