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:
committed by
GitHub
parent
529d72b242
commit
c5bcebc724
@ -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));
|
||||
|
@ -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\".";`
|
||||
|
||||
|
Reference in New Issue
Block a user