I have watched the video and coded it to the best of my ability I don’t understand what I’m doing wrong can someone help, please?
This my first time posting so I really don’t think I post my question right
Your code so far
var myStr = "I am a\"double quoted\" string inside\"double quotes\".";
console.log(myStr);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.
thanks for replying back I did it the way you told me and how the video showed me still not letting me go forward really don't understand what I'm doing wrong
var myStr = "I am a \"double quoted\" string inside \"double quotes\".";
console.log(myStr)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.
thanks for replying back I did it the way you told me and how the video showed me still not letting me go forward really don't understand what I'm doing wrong
var myStr = "I am a \"double quoted\" string inside \"double quotes\".";
console.log(myStr)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.
Tell us what’s happening:*
I keep getting the error below my var myStr does include this string, I have taken out spaces and formatted it the best way I can and it still won’t let me move forward :
Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
What is your current code? Did you take out the single duplicate space in the last version of your code?
I think you might be not fully understanding the exercise.
You need to make a variable that contains the string I am a "double quoted" string inside "double quotes".
However, this string contains quote characters that must be escaped.
I would literally copy-paste the target string into your quotes for myStr and then add the backslashes in the appropriate places to escape the quotes inside the string.
var myStr = "I am a \"double quoted\" string inside \"double quotes\".";
console.log(myStr);
this exactly how I’m doing it the way the video showed me. I thought I use the variable that’s already there that says code on this line and just add the (I am a “double quoted” string inside “double quotes”.) I added the string to (var myStr
) and it keeps telling me to add the string to that variable when I already did that that’s why I’m confused. it keeps asking me to do what I already did
I’m getting a checkmark for getting this part right (You should use two double quotes ( " ) and four escaped double quotes ( \" ).
but I’m getting an X for this (Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".) from what I’m understanding I already added the string or do I not use they variable already there and create my own. I formatted it how you told me and still not working. I tried to copy and paste but on the left side where the code run it doesn’t give us the option to paste. Sorry I’m not trying to be difficult I’m just trying to figure what I’m doing wrong because from my understanding I’m doing what it’s asking including the string to that variable and I did that.