mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-10 06:02:33 -04:00
chore(i18n,learn): processed translations (#49545)
This commit is contained in:
@@ -19,7 +19,11 @@ dashedName: escape-sequences-in-strings
|
||||
|
||||
Assign the following three lines of text into the single variable `myStr` using escape sequences.
|
||||
|
||||
<blockquote>FirstLine<br> \SecondLine<br>ThirdLine</blockquote>
|
||||
<pre>
|
||||
FirstLine
|
||||
\SecondLine
|
||||
ThirdLine
|
||||
</pre>
|
||||
|
||||
You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.
|
||||
|
||||
|
||||
@@ -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")` は `""` (空文字列) になる必要があります。
|
||||
`chainToSwitch("John")` should return `""` (empty string)
|
||||
|
||||
```js
|
||||
assert(chainToSwitch('John') === '');
|
||||
```
|
||||
|
||||
`chainToSwitch(156)` は `""` (空文字列) になる必要があります。
|
||||
`chainToSwitch(156)` should return `""` (empty string)
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(156) === '');
|
||||
|
||||
Reference in New Issue
Block a user