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

This commit is contained in:
camperbot
2022-11-09 06:18:43 -08:00
committed by GitHub
parent b1f42638e7
commit 5a771bf524
45 changed files with 265 additions and 283 deletions

View File

@@ -11,28 +11,26 @@ dashedName: using-objects-for-lookups
Objekte kann man sich als Schlüssel/Wert-Speicher vorstellen, wie ein Wörterbuch. Wenn du tabellarische Daten hast, kannst du ein Objekt zum Nachschlagen von Werten verwenden, anstatt eine `switch`-Anweisung oder eine `if/else`-Kette. Das ist besonders nützlich, wenn du weißt, dass deine Eingabedaten auf einen bestimmten Bereich beschränkt sind.
Hier ist ein Beispiel für eine einfache Suche nach dem umgekehrten Alphabet:
Here is an example of an article object:
```js
const alpha = {
1:"Z",
2:"Y",
3:"X",
4:"W",
...
24:"C",
25:"B",
26:"A"
const article = {
"title": "How to create objects in JavaScript",
"link": "https://www.freecodecamp.org/news/a-complete-guide-to-creating-objects-in-javascript-b0e2450655e8/",
"author": "Kaashan Hussain",
"language": "JavaScript",
"tags": "TECHNOLOGY",
"createdAt": "NOVEMBER 28, 2018"
};
const thirdLetter = alpha[2];
const lastLetter = alpha[24];
const articleAuthor = article[author];
const articleLink = article[link];
const value = 2;
const valueLookup = alpha[value];
const value = "title";
const valueLookup = article[value];
```
`thirdLetter` ist der String `Y`, `lastLetter` ist der String `C` und `valueLookup` ist der String `Y`.
`articleAuthor` is the string `Kaashan Hussain`, `articleLink` is the string `https://www.freecodecamp.org/news/a-complete-guide-to-creating-objects-in-javascript-b0e2450655e8/`, and `valueLookup` is the string `How to create objects in JavaScript`.
# --instructions--