chore(i18n,learn): processed translations (#49559)

This commit is contained in:
camperbot
2023-03-06 19:27:41 +05:30
committed by GitHub
parent 113036dad6
commit 92b33e8b46
693 changed files with 71907 additions and 1059 deletions

View File

@@ -60,43 +60,43 @@ assert(!/if/g.test(code));
assert(code.match(/break/g).length >= 4);
```
`chainToSwitch("bob")` should return the string `Marley`
`chainToSwitch("bob")` має повертати рядок `Marley`
```js
assert(chainToSwitch('bob') === 'Marley');
```
`chainToSwitch(42)` should return the string `The Answer`
`chainToSwitch(42)` має повертати рядок `The Answer`
```js
assert(chainToSwitch(42) === 'The Answer');
```
`chainToSwitch(1)` should return the string `There is no #1`
`chainToSwitch(1)` має повертати рядок `There is no #1`
```js
assert(chainToSwitch(1) === 'There is no #1');
```
`chainToSwitch(99)` should return the string `Missed me by this much!`
`chainToSwitch(99)` має повертати рядок `Missed me by this much!`
```js
assert(chainToSwitch(99) === 'Missed me by this much!');
```
`chainToSwitch(7)` should return the string `Ate Nine`
`chainToSwitch(7)` має повертати рядок `Ate Nine`
```js
assert(chainToSwitch(7) === 'Ate Nine');
```
`chainToSwitch("John")` should return `""` (empty string)
`chainToSwitch("John")` має повертати `""` (порожній рядок)
```js
assert(chainToSwitch('John') === '');
```
`chainToSwitch(156)` should return `""` (empty string)
`chainToSwitch(156)` має повертати `""` (порожній рядок)
```js
assert(chainToSwitch(156) === '');

View File

@@ -14,12 +14,12 @@ dashedName: selecting-from-many-options-with-switch-statements
Ось приклад інструкції `switch`:
```js
switch (lowercaseLetter) {
case "a":
console.log("A");
switch (fruit) {
case "apple":
console.log("The fruit is an apple");
break;
case "b":
console.log("B");
case "orange":
console.log("The fruit is an orange");
break;
}
```