mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 23:02:05 -04:00
chore(i18n,learn): processed translations (#50558)
This commit is contained in:
@@ -29,7 +29,7 @@ Abbiamo definito la variabile `food` nella testa del loop e questa variabile è
|
||||
|
||||
# --instructions--
|
||||
|
||||
Abbiamo definito una funzione `countOnline` che accetta un argomento, `allUsers`. Use a <dfn>for...in</dfn> statement inside this function to loop through the `allUsers` object and return the number of users whose `online` property is set to `true`. Un esempio di oggetto che potrebbe essere passato a `countOnline` è mostrato di sotto. Ogni utente avrà una proprietà `online` con un valore impostato su `true` o `false`.
|
||||
Abbiamo definito una funzione `countOnline` che accetta un argomento, `allUsers`. Usa un'istruzione <dfn>for...in</dfn> all'interno di questa funzione per iterare sull'oggetto `allUsers` e restituire il numero di utenti la cui proprietà `online` è impostata su `true`. Un esempio di oggetto che potrebbe essere passato a `countOnline` è mostrato di sotto. Ogni utente avrà una proprietà `online` con un valore impostato su `true` o `false`.
|
||||
|
||||
```js
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user