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

This commit is contained in:
camperbot
2023-04-26 22:06:29 +05:30
committed by GitHub
parent 3b67c922c7
commit 3565bf179b
25 changed files with 111 additions and 111 deletions

View File

@@ -18,7 +18,7 @@ dashedName: use-if-and-else-to-add-logic-to-your-styles
}
```
ومثلها تماما في JavaScript، يختبرا `@else if` و `@else` المزيد من الشروط:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ dashedName: use-if-and-else-to-add-logic-to-your-styles
# --instructions--
إنشاء mixin يسمى `border-stroke` التي تأخذ وسيط `$val`. يجب على mixin التحقق من الشروط التالية باستخدام `@if`، و `@else if`، و `@else`:
إنشاء mixin يسمى `border-stroke` التي تأخذ وسيط `$val`. The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
إذا كان `$val` ليس `light`، أو `medium`، أو `heavy`، ينبغي تعيين border إلى `none`.
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -18,7 +18,7 @@ Sass 中的 `@if` 指令對於測試特定情況非常有用——它的工作
}
```
類似 JavaScript可以在 Sass 中使用 `@else if` `@else` 測試更多條件:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ Sass 中的 `@if` 指令對於測試特定情況非常有用——它的工作
# --instructions--
創建一個名爲 `border-stroke` 的 mixin它接受一個參數 `$val`。 mixin 應使用 `@if``@else if` `@else` 檢查以下條件:
創建一個名爲 `border-stroke` 的 mixin它接受一個參數 `$val` The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
如果 `$val` 不是 `light``medium` 或者 `heavy`border 應該設置爲 `none`
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -18,7 +18,7 @@ Sass 中的 `@if` 指令对于测试特定情况非常有用——它的工作
}
```
类似 JavaScript可以在 Sass 中使用 `@else if` `@else` 测试更多条件:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ Sass 中的 `@if` 指令对于测试特定情况非常有用——它的工作
# --instructions--
创建一个名为 `border-stroke` 的 mixin它接受一个参数 `$val`。 mixin 应使用 `@if``@else if` `@else` 检查以下条件:
创建一个名为 `border-stroke` 的 mixin它接受一个参数 `$val` The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
如果 `$val` 不是 `light``medium` 或者 `heavy`border 应该设置为 `none`
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -13,7 +13,7 @@ El operador <dfn>lógico or</dfn> (`||`) devuelve `true` si cualquiera de los <d
El operador <dfn>lógico or</dfn> se compone de dos símbolos de barra vertical: (`||`). Este se puede encontrar normalmente entre las teclas de tabulación y escape.
The pattern below should look familiar from prior waypoints.
El patrón de abajo debe parecer familiar desde los puntos de referencia anteriores.
```js
if (num > 10) {
@@ -25,7 +25,7 @@ if (num < 5) {
return "Yes";
```
This code will return `Yes` if `num` is between `5` and `10` (`5` and `10` included). The same logic can be written with the <dfn>logical or</dfn> operator.
Este código devolverá `Yes` si `num` está entre `5` y `10` (`5` y `10` incluidos). La misma lógica se puede escribir con el operador <dfn>lógico o</dfn>.
```js
if (num > 10 || num < 5) {

View File

@@ -18,7 +18,7 @@ La directiva `@if` en Sass es útil para probar un caso específico: funciona ig
}
```
Y al igual que en JavaScript, `@else if` y `@else` prueban más condiciones:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ Y al igual que en JavaScript, `@else if` y `@else` prueban más condiciones:
# --instructions--
Crea un mixin llamado `border-stroke` que toma un parámetro `$val`. El mixin debe comprobar las siguientes condiciones utilizando `@if`, `@else if`, y `@else`:
Crea un mixin llamado `border-stroke` que toma un parámetro `$val`. The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
Si `$val` no es `light`, `medium`, o `heavy`, el borde debe establecerse en `none`.
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -18,7 +18,7 @@ Die `@if`-Direktive in Sass ist nützlich, um auf einen bestimmten Fall zu teste
}
```
Und genau wie in JavaScript testen `@else if` und `@else` auf weitere Bedingungen:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ Und genau wie in JavaScript testen `@else if` und `@else` auf weitere Bedingunge
# --instructions--
Erstelle ein Mixin namens `border-stroke`, das einen Parameter `$val` erhält. Das Mixin sollte mithilfe von `@if`, `@else if` und `@else` die folgenden Bedingungen überprüfen:
Erstelle ein Mixin namens `border-stroke`, das einen Parameter `$val` erhält. The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
Wenn `$val` nicht `light`, `medium` oder `heavy` ist, sollte der Rahmen auf `none` gesetzt werden.
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -18,7 +18,7 @@ La direttiva `@if` in Sass è utile per valutare un caso specifico - funziona co
}
```
E proprio come in JavaScript, `@else if` e `@else` valutano ulteriori condizioni:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ E proprio come in JavaScript, `@else if` e `@else` valutano ulteriori condizioni
# --instructions--
Crea un mixin chiamato `border-stroke` che prende un parametro `$val`. Il mixin dovrebbe controllare le seguenti condizioni usando `@if`, `@else if`e `@else`:
Crea un mixin chiamato `border-stroke` che prende un parametro `$val`. The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
Se `$val` non è `light`, `medium`, o `heavy`, il bordo dovrebbe essere impostato a `none`.
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -7,21 +7,21 @@ dashedName: step-1
# --description--
In this project, you will build a set of football team cards and learn about nested objects, object destructuring, default parameters, event listeners, and switch statements. All of the HTML and CSS for this project has been provided for you.
In questo progetto creerai un set di figurine di una squadra di calcio e imparerai a usare oggetti annidati, destrutturazione di oggetti, parametri predefiniti, event listener e istruzioni switch. Tutto l'HTML e il CSS per questo progetto ti è già stato fornito.
Start by accessing the `id` called `team` from the HTML document and storing it in a `const` variable called `teamName`.
Inizia accedendo all'`id` chiamato `team`dal documento HTML e salvalo in una variabile dichiarata con `const` chiamata `teamName`.
Remember, you can use the `getElementById` method for this.
Ricorda che puoi usare il metodo `getElementById` per questo.
# --hints--
You should use the `document.getElementById()` method to get the `#team` element.
Dovresti usare il metodo `document.getElementById()` per selezionare l'elemento `#team`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)team\1\s*\)/);
```
You should use `const` to declare the variable called `teamName` and assign it the `#team` element.
Dovresti usare `const` per dichiarare la variabile chiamata `teamName` e assegnarle l'elemento `#team`.
```js
assert.match(code, /const\s+teamName\s*=\s*document\.getElementById\(\s*('|"|`)team\1\s*\)/);

View File

@@ -7,29 +7,29 @@ dashedName: step-2
# --description--
Next, access the `id` called `sport` from the HTML document and store it in a `const` variable called `typeOfSport`. Below that variable, assign the `id` of `year` to a `const` variable called `worldCupYear`.
Ora accedi all'`id` chiamato `sport` dal documento HTML e salvalo in una variabile dichiarata con `const` chiamata `typeOfSport`. Sotto questa variabile, assegna l'`id` `year` a una variabile dichiarata con `const` chiamata `worldCupYear`.
# --hints--
You should use the `document.getElementById()` method to get the `#sport` element.
Dovresti usare il metodo `document.getElementById()` per selezionare l'elemento `#sport`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)sport\1\s*\)/);
```
You should use `const` to declare the variable called `typeOfSport` and assign it the `#sport` element.
Dovresti usare `const` per dichiarare la variabile chiamata `typeOfSport` e assegnarle l'elemento `#sport`.
```js
assert.match(code, /const\s+typeOfSport\s*=\s*document\.getElementById\(\s*('|"|`)sport\1\s*\)/);
```
You should use the `document.getElementById()` method to get the `#year` element.
Dovresti usare il metodo `document.getElementById()` per selezionare l'elemento `#year`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)year\1\s*\)/);
```
You should use `const` to declare the variable called `worldCupYear` and assign it the `#year` element.
Dovresti usare `const` per dichiarare la variabile chiamata `worldCupYear` e assegnarle l'elemento `#year`.
```js
assert.match(code, /const\s+worldCupYear\s*=\s*document\.getElementById\(\s*('|"|`)year\1\s*\)/);

View File

@@ -7,29 +7,29 @@ dashedName: step-3
# --description--
Next, access the `id` called `head-coach` from the HTML document and store it in a `const` variable called `headCoach`. Below that variable, assign the `id` of `player-cards` to a `const` variable called `playerCards`.
Ora accedi all'`id` chiamato `head-coach` dal documento HTML e salvalo in una variabile dichiarata con `const` chiamata `headCoach`. Sotto questa variabile, assegna l'`id` `player-cards` a una variabile dichiarata con `const` chiamata `playerCards`.
# --hints--
You should use the `document.getElementById()` method to get the `#head-coach` element.
Dovresti usare il metodo `document.getElementById()` per selezionare l'elemento `#head-coach`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)head-coach\1\s*\)/);
```
You should use `const` to declare the variable called `headCoach` and assign it the `#head-coach` element.
Dovresti usare `const` per dichiarare la variabile chiamata `headCoach` e assegnarle l'elemento `#head-coach`.
```js
assert.match(code, /const\s+headCoach\s*=\s*document\.getElementById\(\s*('|"|`)head-coach\1\s*\)/);
```
You should use the `document.getElementById()` method to get the `#player-cards` element.
Dovresti usare il metodo `document.getElementById()` per selezionare l'elemento `#player-cards`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)player-cards\1\s*\)/);
```
You should use `const` to declare the variable called `playerCards` and assign it the `#player-cards` element.
Dovresti usare `const` per dichiarare la variabile chiamata `playerCards` e assegnarle l'elemento `#player-cards`.
```js
assert.match(code, /const\s+playerCards\s*=\s*document\.getElementById\(\s*('|"|`)player-cards\1\s*\)/);

View File

@@ -7,17 +7,17 @@ dashedName: step-4
# --description--
Create one more `const` variable called `playersDropdownList` and assign it the `id` of `players` using the `getElementById` method.
Crea un'altra variabile con `const` chiamata `playersDropdownList` e assegnale l'`id` `players` usando il metodo `getElementById`.
# --hints--
You should use the `document.getElementById()` method to get the `#players` element.
Dovresti usare il metodo `document.getElementById()` per selezionare l'elemento `#players`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)players\1\s*\)/);
```
You should use `const` to declare the variable called `playersDropdownList` and assign it the `#players` element.
Dovresti usare `const` per dichiarare la variabile chiamata `playersDropdownList` e assegnarle l'elemento `#players`.
```js
assert.match(code, /const\s+playersDropdownList\s*=\s*document\.getElementById\(\s*('|"|`)players\1\s*\)/);

View File

@@ -7,13 +7,13 @@ dashedName: step-5
# --description--
Now it is time to build out the data structure that will hold all of the information for your football team.
Ora è il momento di creare la struttura di dati che conterrà tutte le informazioni della squadra di calcio.
Below the variables you just created, create a new `const` variable called `myFavoriteFootballTeam` and assign it an empty object.
Sotto le variabili appena create, crea una nuova variabile con `const` chiamata `myFavoriteFootballTeam` e assegnale un oggetto vuoto.
# --hints--
You should use `const` to declare the variable called `myFavoriteFootballTeam` and assign it an empty object.
Dovresti usare `const` per dichiarare la variabile chiamata `myFavoriteFootballTeam` e assegnarle un oggetto vuoto.
```js
assert.match(code, /const\s+myFavoriteFootballTeam\s*=\s*{\s*}\s*/);

View File

@@ -12,13 +12,13 @@ Inside the `myFavoriteFootballTeam` object, add a new property with a `key` name
# --hints--
Your `myFavoriteFootballTeam` object should have a `team` property.
L'oggetto `myFavoriteFootballTeam` dovrebbe avere una proprietà `team`.
```js
assert.property(myFavoriteFootballTeam, 'team');
```
Your `team` property should be set to `Argentina`.
La proprietà `team` dovrebbe essere impostata su `Argentina`.
```js
assert.equal(myFavoriteFootballTeam.team, 'Argentina');

View File

@@ -11,7 +11,7 @@ Below the `team` property, add a new property with a `key` named `sport` and a s
# --hints--
Your `myFavoriteFootballTeam` object should have a `sport` property.
L'oggetto `myFavoriteFootballTeam` dovrebbe avere una proprietà `sport`.
```js
assert.property(myFavoriteFootballTeam, 'sport');

View File

@@ -11,19 +11,19 @@ Below the `sport` property, add a new property with a `key` named `year` and a n
# --hints--
Your `myFavoriteFootballTeam` object should have a `year` property.
L'oggetto `myFavoriteFootballTeam` dovrebbe avere una proprietà `year`.
```js
assert.property(myFavoriteFootballTeam, 'year');
```
Your `year` property should be a number.
La proprietà `year` dovrebbe essere un numero.
```js
assert.isNumber(myFavoriteFootballTeam.year);
```
Your `year` property should be set to `1986`.
La proprietà `year` dovrebbe essere impostata su `1986`.
```js
assert.equal(myFavoriteFootballTeam.year, 1986);

View File

@@ -11,19 +11,19 @@ Below the `year` property, add a new property with a `key` named `isWorldCupWinn
# --hints--
Your `myFavoriteFootballTeam` object should have an `isWorldCupWinner` property.
L'oggetto `myFavoriteFootballTeam` dovrebbe avere una proprietà `isWorldCupWinner`.
```js
assert.property(myFavoriteFootballTeam, 'isWorldCupWinner');
```
Your `isWorldCupWinner` property should be a boolean.
La proprietà `isWorldCupWinner` dovrebbe essere un booleano.
```js
assert.isBoolean(myFavoriteFootballTeam.isWorldCupWinner);
```
Your `isWorldCupWinner` property should be set to `true`.
La proprietà `isWorldCupWinner` dovrebbe essere impostata su `true`.
```js
assert.equal(myFavoriteFootballTeam.isWorldCupWinner, true);

View File

@@ -11,43 +11,43 @@ Below the `isWorldCupWinner` property, add a new `key` called `headCoach` with a
# --hints--
Your `myFavoriteFootballTeam` object should have a `headCoach` property.
L'oggetto `myFavoriteFootballTeam` dovrebbe avere una proprietà `headCoach`.
```js
assert.property(myFavoriteFootballTeam, 'headCoach');
```
Your `headCoach` value should be an object.
Il valore di `headCoach` dovrebbe essere un oggetto.
```js
assert.isObject(myFavoriteFootballTeam.headCoach)
```
Your `headCoach` object should have a `coachName` property.
L'oggetto `headCoach` dovrebbe avere una proprietà `coachName`.
```js
assert.property(myFavoriteFootballTeam.headCoach, 'coachName');
```
Your `coachName` property should be set to `Carlos Bilardo`.
La proprietà `coachName` dovrebbe essere impostata su `Carlos Bilardo`.
```js
assert.equal(myFavoriteFootballTeam.headCoach.coachName, 'Carlos Bilardo');
```
Your `headCoach` object should have a `matches` property.
L'oggetto `headCoach` dovrebbe avere una proprietà `matches`.
```js
assert.property(myFavoriteFootballTeam.headCoach, 'matches');
```
Your `matches` property should be a number.
La proprietà `matches` dovrebbe essere un numero.
```js
assert.isNumber(myFavoriteFootballTeam.headCoach.matches);
```
Your `matches` property should be set to `7`.
La proprietà `matches` dovrebbe essere impostata su `7`.
```js
assert.equal(myFavoriteFootballTeam.headCoach.matches, 7);

View File

@@ -11,19 +11,19 @@ Below the `headCoach` property, create a new property with a `key` named `player
# --hints--
Your `myFavoriteFootballTeam` object should have a `players` property.
L'oggetto `myFavoriteFootballTeam` dovrebbe avere una proprietà `players`.
```js
assert.property(myFavoriteFootballTeam, 'players');
```
Your `players` value should be an array.
Il valore di `players` dovrebbe essere un array.
```js
assert.isArray(myFavoriteFootballTeam.players)
```
Your `players` array should be empty.
L'array `players` dovrebbe essere vuoto.
```js
assert.deepEqual(myFavoriteFootballTeam.players, [])

View File

@@ -7,7 +7,7 @@ dashedName: step-12
# --description--
Inside that `players` array, create a new object with the following properties:
All'interno dell'array `players`, crea un nuovo oggetto con le seguenti proprietà:
```md
@@ -22,79 +22,79 @@ nickname: null
# --hints--
Your `myFavoriteFootballTeam.players` array should have the value of an object.
L'array `myFavoriteFootballTeam.players` dovrebbe avere il valore di un oggetto.
```js
assert.isObject(myFavoriteFootballTeam.players[0])
```
Your new object should have a `name` property.
Il nuovo oggetto dovrebbe avere una proprietà `name`.
```js
assert.property(myFavoriteFootballTeam.players[0], 'name');
```
Your `name` property should be set to `Sergio Almirón`.
La proprietà `name` dovrebbe essere impostata su `Sergio Almirón`.
```js
assert.equal(myFavoriteFootballTeam.players[0]?.name, 'Sergio Almirón');
```
Your new object should have a `position` property.
Il nuovo oggetto dovrebbe avere una proprietà `position`.
```js
assert.property(myFavoriteFootballTeam.players[0], 'position');
```
Your `position` property should be set to `forward`.
La proprietà `position` dovrebbe essere impostata su `forward`.
```js
assert.equal(myFavoriteFootballTeam.players[0]?.position, 'forward');
```
Your new object should have a `number` property.
Il nuovo oggetto dovrebbe avere una proprietà `number`.
```js
assert.property(myFavoriteFootballTeam.players[0], 'number');
```
Your `number` property should be a number.
La proprietà `number` dovrebbe essere un numero.
```js
assert.isNumber(myFavoriteFootballTeam.players[0]?.number);
```
Your `number` property should be set to `1`.
La proprietà `number` dovrebbe essere impostata su `1`.
```js
assert.equal(myFavoriteFootballTeam.players[0]?.number, 1);
```
Your new object should have a `isCaptain` property.
Il nuovo oggetto dovrebbe avere una proprietà `isCaptain`.
```js
assert.property(myFavoriteFootballTeam.players[0], 'isCaptain');
```
Your `isCaptain` property should be a boolean.
La proprietà `isCaptain` dovrebbe essere un booleano.
```js
assert.isBoolean(myFavoriteFootballTeam.players[0]?.isCaptain);
```
Your `isCaptain` property should be set to `false`.
La proprietà `isCaptain` dovrebbe essere impostata su `false`.
```js
assert.equal(myFavoriteFootballTeam.players[0]?.isCaptain, false);
```
Your new object should have a `nickname` property.
Il nuovo oggetto dovrebbe avere una proprietà `nickname`.
```js
assert.property(myFavoriteFootballTeam.players[0], 'nickname');
```
Your `nickname` property should be set to `null`.
La proprietà `nickname` dovrebbe essere impostata su `null`.
```js
assert.isNull(myFavoriteFootballTeam.players[0]?.nickname);

View File

@@ -7,7 +7,7 @@ dashedName: step-13
# --description--
Below that object, create a new object with the following properties:
Sotto quell'oggetto, crea un nuovo oggetto con le seguenti proprietà:
```md
name: "Sergio Batista"
@@ -19,7 +19,7 @@ nickname: null
# --hints--
Your `myFavoriteFootballTeam.players` array should have two values.
L'array `myFavoriteFootballTeam.players` dovrebbe avere due valori.
```js
// Have to assert at least, because we pre-populate data in the next step.

View File

@@ -7,59 +7,59 @@ dashedName: step-34
# --description--
L'ultima espressione regolare cercherà stringhe come `dear friend`. Declare a `dearRegex` and assign it a regular expression that will match the string `dear friend`. Remember to make it case insensitive, and add it to your `denyList` array.
L'ultima espressione regolare cercherà stringhe come `dear friend`. Dichiara una variabile `dearRegex` e assegnale un'espressione regolare che troverà la stringa `dear friend`. Ricordati di renderla insensibile alle maiuscole e di aggiungerla all'array `denyList`.
# --hints--
You should use `const` to declare your `dearRegex` variable.
Dovresti usare `const` per dichiarare la variabile `dearRegex`.
```js
assert.match(code, /const\s+dearRegex\s*=/);
```
Your `dearRegex` variable should be assigned a regular expression.
Alla variabile `dearRegex` dovrebbe essere assegnata un'espressione regolare.
```js
assert.instanceOf(dearRegex, RegExp);
```
Your `dearRegex` should match `dear friend`.
`dearRegex` dovrebbe trovare corrispondenza con `dear friend`.
```js
assert.match('dear friend', dearRegex);
```
Your `dearRegex` should be case-insensitive.
`dearRegex` dovrebbe essere insensibile alle maiuscole.
```js
assert.include(dearRegex.flags, 'i');
```
Your `denyList` array should contain `dearRegex`.
L'array `denyList` dovrebbe contenere `dearRegex`.
```js
assert.deepInclude(denyList, dearRegex);
```
Your `denyList` array should contain `stockRegex`.
L'array `denyList` dovrebbe contenere `stockRegex`.
```js
assert.deepInclude(denyList, stockRegex);
```
Your `denyList` array should contain `freeRegex`.
L'array `denyList` dovrebbe contenere `freeRegex`.
```js
assert.deepInclude(denyList, freeRegex);
```
Your `denyList` array should contain `dollarRegex`.
L'array `denyList` dovrebbe contenere `dollarRegex`.
```js
assert.deepInclude(denyList, dollarRegex);
```
Your `denyList` array should contain `helpRegex`.
L'array `denyList` dovrebbe contenere `helpRegex`.
```js
assert.deepInclude(denyList, helpRegex);

View File

@@ -7,31 +7,31 @@ dashedName: step-35
# --description--
To put everything you have learned together, update your `dearRegex` to map the vowels to the corresponding numbers (note that `i` should match `1`, and also match the pipe symbol `|`), and to match whole words.
Per mettere insieme tutto quello che hai imparato, aggiorna `dearRegex` per mappare le vocali con i numeri corrispondenti (nota che `i` dovrebbe corrispondere a `1` e anche al simbolo pipe `|`) e trovare parole intere.
With that, your spam filter project is complete.
E con questo, il progetto del filtro anti-spam è completo.
# --hints--
Your `dearRegex` should use a character class to match `e` or `3`.
`dearRegex` dovrebbe usare una classe di caratteri per trovare `e` o `3`.
```js
assert.match(dearRegex.source, /\[(e3|3e)\]/);
```
Your `dearRegex` should use a character class to match `a`, `@`, or `4`.
`dearRegex` dovrebbe usare una classe di caratteri che indica `a`, `@` o `4`.
```js
assert.match(dearRegex.source, /\[(a@4|a4@|4a@|4@a|@a4|@4a)\]/);
```
Your `dearRegex` should use a character class to match `i`, `1`, or `|`.
`dearRegex` dovrebbe usare una classe di caratteri che indica `i`, `1` o `|`.
```js
assert.match(dearRegex.source, /\[(i1\||i\|1|1i\||1\|i|\|1i|\|i1)\]/);
```
Your `dearRegex` should use a non-capturing group.
`dearRegex` dovrebbe utilizzare un gruppo di non acquisizione.
```js
assert.match(dearRegex.source, /\(\?:/);
@@ -43,61 +43,61 @@ Your `stockRegex` should use a non-capturing group to match `\s` or `^`.
assert.match(dearRegex.source, /\(\?:(\^\|\\s|\\s\|\^)\)/);
```
Your `dearRegex` should use a second non-capturing group.
`dearRegex` dovrebbe utilizzare un secondo gruppo di non acquisizione.
```js
assert.lengthOf(dearRegex.source.match(/\(\?:/g), 2);
```
Your `dearRegex` should use a non-capturing group to match `\s` or `$`.
`dearRegex` dovrebbe usare un gruppo di non acquisizione per trovare `\s` o `$`.
```js
assert.match(dearRegex.source, /\(\?:(\$\|\\s|\\s\|\$)\)/);
```
Your `dearRegex` should match `dear friend`.
`dearRegex` dovrebbe trovare corrispondenza con `dear friend`.
```js
assert.match('dear friend', dearRegex);
```
Your `dearRegex` should match `d34r fr13nd`.
`dearRegex` dovrebbe trovare corrispondenza con `d34r fr13nd`.
```js
assert.match('d34r fr13nd', dearRegex);
```
Your `dearRegex` should match `d3@r fr|3nd`.
`dearRegex` dovrebbe trovare corrispondenza con `d3@r fr|3nd`.
```js
assert.match('d3@r fr|3nd', dearRegex);
```
Your `dearRegex` should match `my dear friend Naomi`.
`dearRegex` dovrebbe trovare corrispondenza con `my dear friend Naomi`.
```js
assert.match('my dear friend Naomi', dearRegex);
```
Your `dearRegex` should match `dear friend Naomi`
`dearRegex` dovrebbe trovare corrispondenza con `dear friend Naomi`
```js
assert.match('dear friend Naomi', dearRegex);
```
Your `dearRegex` should match `my dear friend`.
`dearRegex` dovrebbe trovare corrispondenza con `my dear friend`.
```js
assert.match('my dear friend', dearRegex);
```
Your `dearRegex` should not match `non-dear friend`.
`dearRegex` non dovrebbe trovare corrispondenza con `non-dear friend`.
```js
assert.notMatch('non-dear friend', dearRegex);
```
Your `dearRegex` should not match `dear friend-o`.
`dearRegex` non dovrebbe trovare corrispondenza con `dear friend-o`.
```js
assert.notMatch('dear friend-o', dearRegex);

View File

@@ -18,7 +18,7 @@ Sass の `@if` ディレクティブは特定の case をテストするのに
}
```
JavaScript と同様に、`@else if` `@else` でテストする条件を増やします。
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ JavaScript と同様に、`@else if` と `@else` でテストする条件を増
# --instructions--
パラメーター `$val` を受け取る `border-stroke` というミックスインを作成してください。 ミックスインでは `@if``@else if``@else` を使用して次の条件をチェックしてください。
パラメーター `$val` を受け取る `border-stroke` というミックスインを作成してください。 The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
`$val` `light` でも `medium` でも `heavy` でもない場合は、境界線を `none` に設定してください。
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -18,7 +18,7 @@ A diretiva `@if` no Sass é útil para testar um caso específico - funciona exa
}
```
Assim como em JavaScript, teste `@else if` e `@else` para mais condições:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ Assim como em JavaScript, teste `@else if` e `@else` para mais condições:
# --instructions--
Crie um mixin chamado `border-stroke` que recebe o parâmetro `$val`. O mixin deve verificar as seguintes condições usando `@if`, `@else if` e `@else`:
Crie um mixin chamado `border-stroke` que recebe o parâmetro `$val`. The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
Se `$val` não for `light`, `medium`, ou `heavy`, a borda deve ser ajustada para `none`.
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--

View File

@@ -18,7 +18,7 @@ dashedName: use-if-and-else-to-add-logic-to-your-styles
}
```
Як і в JavaScript, `@else if` і `@else` перевіряють наявність додаткових умов:
And just like in JavaScript, the `@else if` and `@else` directives test for more conditions:
```scss
@mixin text-effect($val) {
@@ -39,7 +39,7 @@ dashedName: use-if-and-else-to-add-logic-to-your-styles
# --instructions--
Створіть міксин з ім'ям `border-stroke`, який приймає параметр `$val`. Міксин повинен перевіряти наступні умови за допомогою `@if`, `@else if` і `@else`:
Створіть міксин з ім'ям `border-stroke`, який приймає параметр `$val`. The mixin should check for the following conditions using `@if`, `@else if`, and `@else` directives:
```scss
light - 1px solid black
@@ -47,7 +47,7 @@ medium - 3px solid black
heavy - 6px solid black
```
Якщо `$val` не є `light`, `medium` або `heavy`, для елемента border повинно бути встановлено значення `none`.
If the `$val` parameter value is not `light`, `medium`, or `heavy`, then the `border` property should be set to `none`.
# --hints--