Files
.github
api-server
client
config
curriculum
__fixtures__
challenges
_meta
arabic
chinese
english
portuguese
russian
spanish
01-responsive-web-design
02-javascript-algorithms-and-data-structures
basic-algorithm-scripting
basic-data-structures
basic-javascript
access-array-data-with-indexes.spanish.md
access-multi-dimensional-arrays-with-indexes.spanish.md
accessing-nested-arrays.spanish.md
accessing-nested-objects.spanish.md
accessing-object-properties-with-bracket-notation.spanish.md
accessing-object-properties-with-dot-notation.spanish.md
accessing-object-properties-with-variables.spanish.md
add-new-properties-to-a-javascript-object.spanish.md
add-two-numbers-with-javascript.spanish.md
adding-a-default-option-in-switch-statements.spanish.md
appending-variables-to-strings.spanish.md
assignment-with-a-returned-value.spanish.md
build-javascript-objects.spanish.md
chaining-if-else-statements.spanish.md
comment-your-javascript-code.spanish.md
comparison-with-the-equality-operator.spanish.md
comparison-with-the-greater-than-operator.spanish.md
comparison-with-the-greater-than-or-equal-to-operator.spanish.md
comparison-with-the-inequality-operator.spanish.md
comparison-with-the-less-than-operator.spanish.md
comparison-with-the-less-than-or-equal-to-operator.spanish.md
comparison-with-the-strict-equality-operator.spanish.md
comparison-with-the-strict-inequality-operator.spanish.md
comparisons-with-the-logical-and-operator.spanish.md
comparisons-with-the-logical-or-operator.spanish.md
compound-assignment-with-augmented-addition.spanish.md
compound-assignment-with-augmented-division.spanish.md
compound-assignment-with-augmented-multiplication.spanish.md
compound-assignment-with-augmented-subtraction.spanish.md
concatenating-strings-with-plus-operator.spanish.md
concatenating-strings-with-the-plus-equals-operator.spanish.md
constructing-strings-with-variables.spanish.md
count-backwards-with-a-for-loop.spanish.md
counting-cards.spanish.md
create-decimal-numbers-with-javascript.spanish.md
declare-javascript-variables.spanish.md
declare-string-variables.spanish.md
decrement-a-number-with-javascript.spanish.md
delete-properties-from-a-javascript-object.spanish.md
divide-one-decimal-by-another-with-javascript.spanish.md
divide-one-number-by-another-with-javascript.spanish.md
escape-sequences-in-strings.spanish.md
escaping-literal-quotes-in-strings.spanish.md
find-the-length-of-a-string.spanish.md
finding-a-remainder-in-javascript.spanish.md
generate-random-fractions-with-javascript.spanish.md
generate-random-whole-numbers-with-javascript.spanish.md
generate-random-whole-numbers-within-a-range.spanish.md
global-scope-and-functions.spanish.md
global-vs.-local-scope-in-functions.spanish.md
golf-code.spanish.md
increment-a-number-with-javascript.spanish.md
initializing-variables-with-the-assignment-operator.spanish.md
introducing-else-if-statements.spanish.md
introducing-else-statements.spanish.md
iterate-odd-numbers-with-a-for-loop.spanish.md
iterate-through-an-array-with-a-for-loop.spanish.md
iterate-with-javascript-do...while-loops.spanish.md
iterate-with-javascript-for-loops.spanish.md
iterate-with-javascript-while-loops.spanish.md
local-scope-and-functions.spanish.md
logical-order-in-if-else-statements.spanish.md
manipulate-arrays-with-pop.spanish.md
manipulate-arrays-with-push.spanish.md
manipulate-arrays-with-shift.spanish.md
manipulate-arrays-with-unshift.spanish.md
manipulating-complex-objects.spanish.md
modify-array-data-with-indexes.spanish.md
multiple-identical-options-in-switch-statements.spanish.md
multiply-two-decimals-with-javascript.spanish.md
multiply-two-numbers-with-javascript.spanish.md
nest-one-array-within-another-array.spanish.md
nesting-for-loops.spanish.md
passing-values-to-functions-with-arguments.spanish.md
practice-comparing-different-values.spanish.md
profile-lookup.spanish.md
quoting-strings-with-single-quotes.spanish.md
record-collection.spanish.md
replacing-if-else-chains-with-switch.spanish.md
return-a-value-from-a-function-with-return.spanish.md
return-early-pattern-for-functions.spanish.md
returning-boolean-values-from-functions.spanish.md
selecting-from-many-options-with-switch-statements.spanish.md
shopping-list.spanish.md
stand-in-line.spanish.md
store-multiple-values-in-one-variable-using-javascript-arrays.spanish.md
storing-values-with-the-assignment-operator.spanish.md
subtract-one-number-from-another-with-javascript.spanish.md
testing-objects-for-properties.spanish.md
understand-string-immutability.spanish.md
understanding-boolean-values.spanish.md
understanding-case-sensitivity-in-variables.spanish.md
understanding-undefined-value-returned-from-a-function.spanish.md
understanding-uninitialized-variables.spanish.md
updating-object-properties.spanish.md
use-bracket-notation-to-find-the-first-character-in-a-string.spanish.md
use-bracket-notation-to-find-the-last-character-in-a-string.spanish.md
use-bracket-notation-to-find-the-nth-character-in-a-string.spanish.md
use-bracket-notation-to-find-the-nth-to-last-character-in-a-string.spanish.md
use-conditional-logic-with-if-statements.spanish.md
use-multiple-conditional-ternary-operators.spanish.md
use-the-conditional-ternary-operator.spanish.md
use-the-parseint-function-with-a-radix.spanish.md
use-the-parseint-function.spanish.md
using-objects-for-lookups.spanish.md
word-blanks.spanish.md
write-reusable-javascript-with-functions.spanish.md
debugging
es6
functional-programming
intermediate-algorithm-scripting
javascript-algorithms-and-data-structures-projects
object-oriented-programming
regular-expressions
03-front-end-libraries
04-data-visualization
05-apis-and-microservices
06-information-security-and-quality-assurance
08-coding-interview-prep
09-certificates
schema
test
.babelrc
.editorconfig
.npmignore
.travis.yml
CHANGELOG.md
LICENSE.md
comment-dictionary.js
commitizen.config.js
commitlint.config.js
create-challenge-bundle.js
getChallenges.acceptance.test.js
getChallenges.js
getChallenges.test.js
gulpfile.js
lib.js
package-entry.js
package-lock.json
package.json
utils.js
cypress
docs
tools
utils
.editorconfig
.eslintignore
.eslintrc.json
.gitattributes
.gitignore
.gitpod.yml
.node-inspectorrc
.npmrc
.prettierignore
.prettierrc
.snyk
.vcmrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile.tests
HoF.md
LICENSE.md
README.md
SECURITY.md
change_volumes_owner.sh
crowdin.yml
cypress-install.js
cypress.json
docker-compose-shared.yml
docker-compose.tests.yml
docker-compose.yml
jest.config.js
lerna.json
lighthouserc.js
package-lock.json
package.json
sample.env
freeCodeCamp/curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/understanding-boolean-values.spanish.md

67 lines
1.9 KiB
Markdown
Raw Normal View History

2018-10-08 13:34:43 -04:00
---
id: bd7123c9c441eddfaeb5bdef
title: Understanding Boolean Values
challengeType: 1
2018-10-10 16:20:40 -04:00
videoUrl: ''
localeTitle: Entendiendo los valores booleanos
2018-10-08 13:34:43 -04:00
---
## Description
2018-10-10 16:20:40 -04:00
<section id="description"> Otro tipo de datos es el <dfn>booleano</dfn> . <code>Booleans</code> solo pueden ser uno de dos valores: <code>true</code> o <code>false</code> . Básicamente son pequeños interruptores de encendido y apagado, donde <code>true</code> está &quot;encendido&quot; y <code>false</code> está &quot;apagado&quot;. Estos dos estados son mutuamente excluyentes. <strong>Nota</strong> <br> <code>Boolean</code> valores <code>Boolean</code> nunca se escriben entre comillas. Las <code>strings</code> <code>&quot;true&quot;</code> y <code>&quot;false&quot;</code> no son <code>Boolean</code> y no tienen un significado especial en JavaScript. </section>
2018-10-08 13:34:43 -04:00
## Instructions
2018-10-10 16:20:40 -04:00
<section id="instructions"> Modifique la función <code>welcomeToBooleans</code> para que devuelva <code>true</code> lugar de <code>false</code> cuando se haga clic en el botón Ejecutar. </section>
2018-10-08 13:34:43 -04:00
## Tests
<section id='tests'>
```yml
tests:
2018-10-10 16:20:40 -04:00
- text: La función <code>welcomeToBooleans()</code> debe devolver un valor booleano (verdadero / falso).
2018-10-08 13:34:43 -04:00
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.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function welcomeToBooleans() {
// Only change code below this line.
return false; // Change this line
// Only change code above this line.
}
2018-10-10 16:20:40 -04:00
2018-10-08 13:34:43 -04:00
```
</div>
### After Test
<div id='js-teardown'>
```js
console.info('after the test');
```
</div>
</section>
## Solution
<section id='solution'>
```js
2018-10-10 16:20:40 -04:00
// solution required
2018-10-08 13:34:43 -04:00
```
</section>