Files
freeCodeCamp/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/understanding-boolean-values.md
camperbot b3af21d50f chore(i18n,curriculum): update translations (#42487)
* chore(i18n,curriculum): update translations

* chore: Italian to italian

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2021-06-14 11:34:20 -07:00

1.4 KiB

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7123c9c441eddfaeb5bdef Comprendere i valori booleani 1 https://scrimba.com/c/c9Me8t4 301176 understanding-boolean-values

--description--

Un altro tipo di dati è il Boolean. I valori booleani possono essere solo uno di due valori: true o false. Sono fondamentalmente piccoli interruttori on-off, dove true è attivato e false è disattivato. Questi due stati si escludono a vicenda.

Nota: i valori booleani non vengono mai scritti tra virgolette. Le stringhe "true" e "false" non sono booleane e non hanno alcun significato speciale in JavaScript.

--instructions--

Modifica la funzione welcomeToBooleans in modo che restituisca true invece di false quando si fa clic sul pulsante per eseguire.

--hints--

La funzione welcomeToBooleans() dovrebbe restituire un valore booleano (true o false).

assert(typeof welcomeToBooleans() === 'boolean');

welcomeToBooleans() dovrebbe restituire true.

assert(welcomeToBooleans() === true);

--seed--

--after-user-code--

welcomeToBooleans();

--seed-contents--

function welcomeToBooleans() {

  // Only change code below this line

  return false; // Change this line

  // Only change code above this line
}

--solutions--

function welcomeToBooleans() {
  return true; // Change this line
}