Basic JavaScript: Escaping Literal Quotes in Strings

var myStr = "Yo Mama said, \"have some cookies\"";

Leave a Reply

Your email address will not be published. Required fields are marked *