mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-08 12:04:29 -05:00
chore(i18n,learn): processed translations (#49545)
This commit is contained in:
@@ -19,7 +19,11 @@ dashedName: escape-sequences-in-strings
|
||||
|
||||
使用转义字符把下面三行文本赋值给一个变量 `myStr`。
|
||||
|
||||
<blockquote>FirstLine<br> \SecondLine<br>ThirdLine</blockquote>
|
||||
<pre>
|
||||
FirstLine
|
||||
\SecondLine
|
||||
ThirdLine
|
||||
</pre>
|
||||
|
||||
你需要使用转义字符正确地插入特殊字符。 你也需要确保间距与上面文本一致,并且单词或转义字符之间没有空格。
|
||||
|
||||
|
||||
@@ -60,43 +60,43 @@ assert(!/if/g.test(code));
|
||||
assert(code.match(/break/g).length >= 4);
|
||||
```
|
||||
|
||||
`chainToSwitch("bob")` 应该是字符串 `Marley`
|
||||
`chainToSwitch("bob")` should return the string `Marley`
|
||||
|
||||
```js
|
||||
assert(chainToSwitch('bob') === 'Marley');
|
||||
```
|
||||
|
||||
`chainToSwitch(42)` 应该是字符串 `The Answer`
|
||||
`chainToSwitch(42)` should return the string `The Answer`
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(42) === 'The Answer');
|
||||
```
|
||||
|
||||
`chainToSwitch(1)` 应该是字符串 `There is no #1`
|
||||
`chainToSwitch(1)` should return the string `There is no #1`
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(1) === 'There is no #1');
|
||||
```
|
||||
|
||||
`chainToSwitch(99)`应该为 `Missed me by this much!`。
|
||||
`chainToSwitch(99)` should return the string `Missed me by this much!`
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(99) === 'Missed me by this much!');
|
||||
```
|
||||
|
||||
`chainToSwitch(7)` 应该是字符串 `Ate Nine`
|
||||
`chainToSwitch(7)` should return the string `Ate Nine`
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(7) === 'Ate Nine');
|
||||
```
|
||||
|
||||
`chainToSwitch("John")` 应该为 `""` (empty string)。
|
||||
`chainToSwitch("John")` should return `""` (empty string)
|
||||
|
||||
```js
|
||||
assert(chainToSwitch('John') === '');
|
||||
```
|
||||
|
||||
`chainToSwitch(156)` 应该为 `""` (empty string)。
|
||||
`chainToSwitch(156)` should return `""` (empty string)
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(156) === '');
|
||||
|
||||
Reference in New Issue
Block a user