chore(i18n,learn): processed translations (#45574)
This commit is contained in:
@ -45,13 +45,13 @@ const myFunc = () => "value";
|
||||
應該替換 `var` 關鍵字。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` 應該爲一個常量(使用 `const`)。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` 應該是一個函數 `function`。
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
不要使用 `function` 關鍵字。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -45,13 +45,13 @@ const myFunc = () => "value";
|
||||
应该替换 `var` 关键字。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` 应该为一个常量(使用 `const`)。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` 应该是一个函数 `function`。
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
不要使用 `function` 关键字。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -45,13 +45,13 @@ Reescribe la función asignada a la variable `magic`, la cual devuelve una `new
|
||||
Debes reemplazar la palabra clave `var`.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` debe ser una variable constante (utilizando `const`).
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` debe ser una función (`function`).
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
La palabra clave `function` no debe ser usada.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -45,13 +45,13 @@ Riscrivi la funzione assegnata alla variabile `magic`, che restituisce una `new
|
||||
Dovresti sostituire la parola chiave `var`.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` dovrebbe essere una variabile costante (usando `const`).
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` dovrebbe essere una `function`.
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
La parola chiave `function` non dovrebbe essere utilizzata.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -45,13 +45,13 @@ const myFunc = () => "value";
|
||||
`var` キーワードを置き換える必要があります。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` は (`const` を使用して宣言した) 定数変数である必要があります。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` は `function` である必要があります。
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
`function` キーワードは使用しないでください。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -27,19 +27,19 @@ Altere a propriedade `background-color` de cada elemento `div` com base nos nome
|
||||
|
||||
# --hints--
|
||||
|
||||
Você deve usar a função `hsl()` para declarar a cor `green` (verde).
|
||||
Você deve usar a função `hsl()` para declarar a cor verde.
|
||||
|
||||
```js
|
||||
assert(code.match(/\.green\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
||||
```
|
||||
|
||||
Você deve usar a função `hsl()` para declarar a cor `cyan` (ciano).
|
||||
Você deve usar a função `hsl()` para declarar a cor ciano.
|
||||
|
||||
```js
|
||||
assert(code.match(/\.cyan\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
||||
```
|
||||
|
||||
Você deve usar a função `hsl()` para declarar a cor `blue` (azul).
|
||||
Você deve usar a função `hsl()` para declarar a cor azul.
|
||||
|
||||
```js
|
||||
assert(code.match(/\.blue\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
||||
|
@ -45,13 +45,13 @@ Rescreva a função atribuída à variável `magic` usando a sintaxe de arrow fu
|
||||
Você deve substituir a palavra-chave `var`.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
A variável `magic` deve ser uma constante (use `const`).
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
A variável `magic` deve ser uma `function`.
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
A palavra-chave `function` não deve ser usada.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -45,13 +45,13 @@ const myFunc = () => "value";
|
||||
Вам слід замінити ключове слово `var`.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` має бути постійною змінною (використовуйте `const`).
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` має бути `function`.
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
Не використовуйте ключове слово `function`.
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
Reference in New Issue
Block a user