question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Escaping Literal Quotes in Strings

See original GitHub issue

Hi there, I’m stuck here.

Challenge escaping-literal-quotes-in-strings has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

My code:


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

So, what’s the problem? I can’t complete this task because of this error:

You should use two double quotes (") and four escaped double quotes (").

But… I’m use them all, no?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
BerkeleyTruecommented, Sep 9, 2016

Do not +1 as a comment. It leads to a lot of spam. Use the thumps up button instead.

0reactions
paulpatel2000commented, Jan 5, 2017

Please remove space before ""
var myStr= “I am a "double quoted" string inside "double quotes".”;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Escaping Literal Quotes in Strings - Guide
Hint 1. When you need to use a special character such as " inside a string you need to escape it using \...
Read more >
Escaping Literal Quotes in Javascript - Stack Overflow
use character code 34 ( String.fromCharCode(34) ) and concatanate; double escape "\\\""; use single quotes to quote double quotes '"'.
Read more >
Escaping Literal Quotes in Strings - Scrimba.com
Learn to code with interactive screencasts. Our courses and tutorials will teach you React, Vue, Angular, JavaScript, HTML, CSS, and more.
Read more >
How to Escape Quotes in a String using JavaScript | bobbyhadz
To escape a single or double quote in a string, use a backslash \ character before each single or double quote in the...
Read more >
Escaping Literal Quotes in Strings | #JavaScriptTutorial
Escaping Literal Quotes in Strings | #JavaScriptTutorial · More from Kobci Aqoontaada · CSharp OOP || Constructors Part 2 || AfSomali · CSharp...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found