fix(learn): revert backslash change (#41382)

* fix(learn): revert backslash change

Crowdin resolved the issue with backslashes escaping backtics in
the markdown parser, so this reverts the workaround we implemented
for that bug.

* Update curriculum/challenges/english/10-coding-interview-prep/rosetta-code/s-expressions.md

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
Nicholas Carrigan (he/him)
2021-03-09 08:13:27 -08:00
committed by GitHub
parent 529d72b242
commit c5bcebc724
5 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@ assert(/FirstLine\n/.test(myStr));
assert(/\n\t/.test(myStr));
```
`SecondLine` should be preceded by the backslash character <code>\\</code>
`SecondLine` should be preceded by the backslash character `\`
```js
assert(/\\SecondLine/.test(myStr));

View File

@ -11,7 +11,7 @@ dashedName: escaping-literal-quotes-in-strings
When you are defining a string you must start and end with a single or double quote. What happens when you need a literal quote: `"` or `'` inside of your string?
In JavaScript, you can <dfn>escape</dfn> a quote from considering it as an end of string quote by placing a <dfn>backslash</dfn> (<code>\\</code>) in front of the quote.
In JavaScript, you can <dfn>escape</dfn> a quote from considering it as an end of string quote by placing a <dfn>backslash</dfn> (`\`) in front of the quote.
`var sampleStr = "Alan said, \"Peter is learning JavaScript\".";`