Escaping literal quotes in java

Tell us what’s happening:
Describe your issue in detail here.
please anyone help me in understanding why my answer is being denied

var myStr = “I am a “double quoted” string inside “double quotes””;


const myStr = "I am a \"double quoted\" string inside \"double quotes\""; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Java and Javascript are very different.

You don’t have a period at the end of the string.

You just forgot the dot at the end :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.