mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-26 03:02:39 -05:00
2.0 KiB
2.0 KiB
id, title, localeTitle, challengeType
| id | title | localeTitle | challengeType |
|---|---|---|---|
| bd7123c9c441eddfaeb5bdef | Understanding Boolean Values | Entendiendo los valores booleanos | 1 |
Description
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
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> debería devolver un valor booleano (verdadero / falso).'
testString: 'assert(typeof welcomeToBooleans() === "boolean", "The <code>welcomeToBooleans()</code> function should return a boolean (true/false) 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
function welcomeToBooleans() {
return true; // Change this line
}