Merge pull request #10475 from erictleung/fix/clarify-everything-be-true

Clarify Everything Be True on truthy and falsy
This commit is contained in:
Logan Tegman
2016-09-07 09:45:07 -07:00
committed by GitHub
2 changed files with 11 additions and 3 deletions

View File

@ -93,7 +93,9 @@ var links = {
"Arithmetic Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators",
"Comparison Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators",
"Details of the Object Model": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model",
"For Loops": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for"
"For Loops": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for",
"Truthy": "https://developer.mozilla.org/en-US/docs/Glossary/Truthy",
"Falsy": "https://developer.mozilla.org/en-US/docs/Glossary/Falsy"
};
module.exports = links;

View File

@ -1049,8 +1049,10 @@
"id": "a10d2431ad0c6a099a4b8b52",
"title": "Everything Be True",
"description": [
"Check if the predicate (second argument) is truthy on all elements of a collection (first argument).",
"Remember, you can access object properties through either dot notation or [] notation.",
"Check if the predicate (second argument) is <dfn>truthy</dfn> on all elements of a collection (first argument).",
"In other words, you are given an array collection of objects. The predicate <code>pre</code> will be an object property and you need to return <code>true</code> if its value is <code>truthy</code>. Otherwise, return <code>false</code>.",
"In JavaScript, <code>truthy</code> values are values that translate to <code>true</code> when evaluated in a Boolean context.",
"Remember, you can access object properties through either dot notation or <code>[]</code> notation.",
"Remember to use <a href='http://forum.freecodecamp.com/t/how-to-get-help-when-you-are-stuck/19514' target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code."
],
"challengeSeed": [
@ -1077,6 +1079,10 @@
],
"isRequired": true,
"type": "bonfire",
"MDNlinks": [
"Truthy",
"Falsy"
],
"challengeType": 5,
"translations": {
"es": {