mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 05:02:17 -04:00
chore(i18n,learn): processed translations (#49993)
This commit is contained in:
@@ -11,7 +11,7 @@ dashedName: comparisons-with-the-logical-and-operator
|
||||
|
||||
A volte dovrai testare più di una cosa alla volta. L'operatore logico <dfn>and</dfn> (`&&`) restituisce `true` se e solo se gli <dfn>operandi</dfn> a sinistra e a destra di esso sono veri.
|
||||
|
||||
The same effect could be achieved by nesting an `if` statement inside another `if`.
|
||||
Lo stesso effetto può essere ottenuto annidando un'istruzione `if` all'interno di un altro `if`.
|
||||
|
||||
```js
|
||||
if (num > 5) {
|
||||
@@ -22,7 +22,7 @@ if (num > 5) {
|
||||
return "No";
|
||||
```
|
||||
|
||||
This code will return `Yes` if `num` is greater than `5` and less than `10`. The same logic can be written with the <dfn>logical and</dfn> operator.
|
||||
Questo codice restituirà `Yes` se `num` è maggiore di `5` e minore a `10`. La stessa logica può essere scritta con l'operatore logico <dfn>and</dfn>.
|
||||
|
||||
```js
|
||||
if (num > 5 && num < 10) {
|
||||
|
||||
@@ -13,7 +13,7 @@ L'operatore <dfn>Or logico</dfn> (`||`) restituisce `true` se uno degli <dfn>ope
|
||||
|
||||
L'operatore <dfn>or logico</dfn> è composto da due simboli "pipe": (`||`). Questo in genere può essere trovato tra i tuoi tasti Backspace e Enter.
|
||||
|
||||
The pattern below should look familiar from prior waypoints.
|
||||
Lo schema sottostante dovrebbe esserti familiare dai punti visti in precedenza.
|
||||
|
||||
```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.
|
||||
Questo codice restituirà `Yes` se `num` è compreso tra `5` e `10` (`5` e `10` inclusi). La stessa logica può essere scritta con l'operatore logico <dfn>or</dfn>.
|
||||
|
||||
```js
|
||||
if (num > 10 || num < 5) {
|
||||
|
||||
Reference in New Issue
Block a user