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

This commit is contained in:
camperbot
2023-02-16 16:34:56 +05:30
committed by GitHub
parent 88752ccd6c
commit cd58053ced
540 changed files with 17855 additions and 1106 deletions

View File

@@ -9,36 +9,31 @@ dashedName: escape-sequences-in-strings
# --description--
Le virgolette non sono gli unici caratteri dei quali si può fare l'<dfn>escaping</dfn> all'interno di una stringa. Ci sono due motivi per usare i caratteri di escaping:
1. Per permetterti di utilizzare caratteri che potresti non essere altrimenti in grado di digitare, come ad esempio un carattere nuova riga.
2. Per permetterti di rappresentare più virgolette in una stringa senza JavaScript interpretare erroneamente ciò che intendi.
Lo abbiamo imparato nella sfida precedente.
Le virgolette non sono gli unici caratteri dei quali si può fare l'<dfn>escaping</dfn> all'interno di una stringa. Escape sequences allow you to use characters you may not otherwise be able to use in a string.
<table class='table table-striped'><thead><tr><th>Codice</th><th>Output</th></tr></thead><tbody><tr><td><code>\'</code></td><td>virgoletta singola</td></tr><tr><td><code>\"</code></td><td>doppia citazione</td></tr><tr><td><code>\\</code></td><td>barra rovesciata</td></tr><tr><td><code>\n</code></td><td>nuova riga</td></tr><tr><td><code>\t</code></td><td>tabulazione</td></tr><tr><td><code>\r</code></td><td>ritorno a capo</td></tr><tr><td><code>\b</code></td><td>delimitatore di parola</td></tr><tr><td><code>\f</code></td><td>avanzamento carta (form feed)</td></tr></tbody></table>
*Nota che la barra rovesciata necessita di escaping perché appaia come barra rovesciata.*
*Note that the backslash itself must be escaped in order to display as a backslash.*
# --instructions--
Assegna le seguenti tre linee di testo in una sola variabile `myStr` usando le seguenze di escape.
Assign the following three lines of text into the single variable `myStr` using escape sequences.
<blockquote>FirstLine<br>    \SecondLine<br>ThirdLine</blockquote>
Dovrai usare le sequenze di escape per inserire i caratteri speciali. Dovrai seguire anche la spaziatura come sopra, senza spazi tra sequenze di escape o le parole.
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.
**Note:** L'indentazione per `SecondLine` si ottiene con il carattere di escape di tabulazione, non con gli spazi.
**Note:** The indentation for `SecondLine` is achieved with the tab escape character, not spaces.
# --hints--
`myStr` non dovrebbe contenere spazi
`myStr` should not contain any spaces
```js
assert(!/ /.test(myStr));
```
`myStr` dovrebbe contenere le stringhe `FirstLine`, `SecondLine` e `ThirdLine` (ricorda la distinzione tra maiuscole e minuscole)
`myStr` should contain the strings `FirstLine`, `SecondLine` and `ThirdLine` (remember case sensitivity)
```js
assert(
@@ -46,31 +41,31 @@ assert(
);
```
`FirstLine` dovrebbe essere seguito dal carattere newline `\n`
`FirstLine` should be followed by the newline character `\n`
```js
assert(/FirstLine\n/.test(myStr));
```
`myStr` dovrebbe contenere un carattere di tabulazione `\t` che segue un carattere nuova riga
`myStr` should contain a tab character `\t` which follows a newline character
```js
assert(/\n\t/.test(myStr));
```
`SecondLine` dovrebbe essere preceduto dal carattere backslash `\`
`SecondLine` should be preceded by the backslash character `\`
```js
assert(/\\SecondLine/.test(myStr));
```
Ci dovrebbe essere un carattere nuova riga tra `SecondLine` e `ThirdLine`
There should be a newline character between `SecondLine` and `ThirdLine`
```js
assert(/SecondLine\nThirdLine/.test(myStr));
```
`myStr` dovrebbe contenere solo i caratteri mostrati nelle istruzioni
`myStr` should only contain characters shown in the instructions
```js
assert(myStr === 'FirstLine\n\t\\SecondLine\nThirdLine');