freeCodeCamp/curriculum/challenges/espanol/02-javascript-algorithms-an.../basic-javascript/understanding-boolean-value...

1.3 KiB

id title challengeType videoUrl forumTopicId dashedName
bd7123c9c441eddfaeb5bdef Understanding Boolean Values 1 https://scrimba.com/c/c9Me8t4 301176 understanding-boolean-values

--description--

Another data type is the Boolean. Booleans may only be one of two values: true or false. They are basically little on-off switches, where true is "on" and false is "off." These two states are mutually exclusive.

Note
Boolean values are never written with quotes. The strings "true" and "false" are not Boolean and have no special meaning in JavaScript.

--instructions--

Modify the welcomeToBooleans function so that it returns true instead of false when the run button is clicked.

--hints--

The welcomeToBooleans() function should return a boolean (true/false) value.

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

welcomeToBooleans() should return 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
}