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

1.9 KiB

id title challengeType videoUrl localeTitle
bd7123c9c441eddfaeb5bdef Understanding Boolean Values 1 Entendiendo los valores booleanos

Description

Otro tipo de datos es el booleano . Booleans solo pueden ser uno de dos valores: true o false . Básicamente son pequeños interruptores de encendido y apagado, donde true está "encendido" y false está "apagado". Estos dos estados son mutuamente excluyentes. Nota
Boolean valores Boolean nunca se escriben entre comillas. Las strings "true" y "false" no son Boolean y no tienen un significado especial en JavaScript.

Instructions

Modifique la función welcomeToBooleans para que devuelva true lugar de false cuando se haga clic en el botón Ejecutar.

Tests

tests:
  - text: La función <code>welcomeToBooleans()</code> debe devolver un valor booleano (verdadero / falso).
    testString: 'assert(typeof welcomeToBooleans() === "boolean", "The <code>welcomeToBooleans()</code> function should return a boolean &#40;true/false&#41; value.");'
  - text: <code>welcomeToBooleans()</code> debe devolver true.
    testString: 'assert(welcomeToBooleans() === true, "<code>welcomeToBooleans()</code> should return true.");'

Challenge Seed

function welcomeToBooleans() {

// Only change code below this line.

return false; // Change this line

// Only change code above this line.
}

After Test

console.info('after the test');

Solution

// solution required