Merge pull request #9420 from FreeCodeCamp/staging

Release staging
This commit is contained in:
Berkeley Martinez
2016-06-27 16:05:15 -07:00
committed by GitHub
8 changed files with 13 additions and 10 deletions

View File

@ -20,10 +20,9 @@
* Mobile, Desktop, or Tablet:
#### Your Code
<!-- If relevant, paste all of your challenge code in here -->
```js
// If relevant, paste all of your challenge code in here
```
#### Screenshot

View File

@ -101,6 +101,7 @@ main = (function(main, global) {
if (!(event.ctrlKey || event.metaKey)) {
toggleMainChat();
}
window.ga('send', 'event', 'NAV', 'NAV-CHAT', 'Nav Chat Button Clicked');
});
function showMainChat() {

View File

@ -202,6 +202,7 @@
"Un palíndromo es una palabra u oración que se escribe de la misma forma en ambos sentidos, sin tomar en cuenta signos de puntuación, espacios y sin distinguir entre mayúsculas y minúsculas.",
"Tendrás que quitar los caracteres no alfanuméricos (signos de puntuación, espacioes y símbolos) y transformar las letras a minúsculas para poder verificar si el texto es palíndromo.",
"Te proveeremos textos en varios formatos, como \"racecar\", \"RaceCar\", and \"race CAR\" entre otros.",
"También vamos a pasar cadenas con símbolos especiales, tales como <code>\"2A3*3a2\"</code>, <code>\"2A3 3a2\"</code>, y <code>\"2_A3*3#A2\"</code>.",
"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/FreeCodeCamp-Get-Help' target='_blank'>Leer-Buscar-Preguntar</a> si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."
]
},

View File

@ -3602,12 +3602,12 @@
"id": "56533eb9ac21ba0edf2244e0",
"title": "Replacing If Else Chains with Switch",
"description": [
"If you have many options to choose from, a <code>switch</code> statement can be easier to write than many chained <code>if</code>/<code>if else</code> statements. The following:",
"If you have many options to choose from, a <code>switch</code> statement can be easier to write than many chained <code>if</code>/<code>else if</code> statements. The following:",
"<blockquote>if (val === 1) {<br> answer = \"a\";<br>} else if (val === 2) {<br> answer = \"b\";<br>} else {<br> answer = \"c\";<br>}</blockquote>",
"can be replaced with:",
"<blockquote>switch (val) {<br> case 1:<br> answer = \"a\";<br> break;<br> case 2:<br> answer = \"b\";<br> break;<br> default:<br> answer = \"c\";<br>}</blockquote>",
"<h4>Instructions</h4>",
"Change the chained <code>if</code>/<code>if else</code> statements into a <code>switch</code> statement."
"Change the chained <code>if</code>/<code>else if</code> statements into a <code>switch</code> statement."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [
@ -4527,7 +4527,7 @@
"Always return the entire collection object.",
"<strong>Hints</strong><br>Use <code>bracket notation</code> when <a href=\"accessing-objects-properties-with-variables\" target=\"_blank\">accessing object properties with variables</a>.",
"Push is an array method you can read about on <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push\">Mozilla Developer Network</a>.",
"You may refer back to <a href=\"https://www.freecodecamp.com/challenges/introducing-javascript-object-notation-json\">Introducing JavaScript Object Notation (JSON)</a> for a refresher."
"You may refer back to <a href=\"manipulating-complex-objects\">Manipulating Complex Objects</a>Introducing JavaScript Object Notation (JSON)</a> for a refresher."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [
@ -4582,6 +4582,7 @@
"assert(updateRecords(5439, \"tracks\", \"Take a Chance on Me\")[5439][\"tracks\"].pop() === \"Take a Chance on Me\", 'message: After <code>updateRecords(5439, \"tracks\", \"Take a Chance on Me\")</code>, <code>tracks</code> should have <code>\"Take a Chance on Me\"</code> as the last element.');",
"updateRecords(2548, \"artist\", \"\"); assert(!collection[2548].hasOwnProperty(\"artist\"), 'message: After <code>updateRecords(2548, \"artist\", \"\")</code>, <code>artist</code> should not be set');",
"assert(updateRecords(1245, \"tracks\", \"Addicted to Love\")[1245][\"tracks\"].pop() === \"Addicted to Love\", 'message: After <code>updateRecords(1245, \"tracks\", \"Addicted to Love\")</code>, <code>tracks</code> should have <code>\"Addicted to Love\"</code> as the last element.');",
"assert(updateRecords(2468, \"tracks\", \"Free\")[2468][\"tracks\"][0] === \"1999\", 'message: After <code>updateRecords(2468, \"tracks\", \"Free\")</code>, <code>tracks</code> should have <code>\"1999\"</code> as the first element.');",
"updateRecords(2548, \"tracks\", \"\"); assert(!collection[2548].hasOwnProperty(\"tracks\"), 'message: After <code>updateRecords(2548, \"tracks\", \"\")</code>, <code>tracks</code> should not be set');"
],
"type": "checkpoint",

View File

@ -350,6 +350,7 @@
"description": [
"The array method <code>reduce</code> is used to iterate through an array and condense it into one value.",
"To use <code>reduce</code> you pass in a callback whose arguments are an accumulator (in this case, <code>previousVal</code>) and the current value (<code>currentVal</code>).",
"The accumulator is like a total that <code>reduce</code> keeps track of after each operation. The current value is just the next element in the array you're iterating through.",
"<code>reduce</code> has an optional second argument which can be used to set the initial value of the accumulator. If no initial value is specified it will be the first array element and <code>currentVal</code> will start with the second array element.",
"Here is an example of <code>reduce</code> being used to subtract all the values of an array:",
"<blockquote>var singleVal = array.reduce(function(previousVal, currentVal) {<br>&nbsp;&nbsp;return previousVal - currentVal;<br>}, 0);</blockquote>",

View File

@ -231,7 +231,7 @@
"You can get feedback on your project by sharing it with your friends on Facebook."
],
"challengeSeed": [
"0oqjSkGoHg"
"_0oqjSkGoHg"
],
"tests": [],
"isRequired": true,

View File

@ -24,7 +24,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
li
a(href='/about') About
li
a(href='/shop') Shop
a(href='/shop', target='_blank') Shop
if !user
li
a(href='/signin') Sign in

View File

@ -77,7 +77,7 @@ block content
td.text-center
i.fa.fa-facebook
td
a(href="//facebook.com/freecodecamp") Our Facebook page
a(href="//facebook.com/freecodecamp", target='_blank') Our Facebook page
tr
td.text-center
i.fa.fa-reddit
@ -167,7 +167,7 @@ block content
<h4>Can I invest in Free Code Camp?</h4>
<p class="negative-15">We're self-funded and don't want outside investment.</p>
<h4>Can I donate to Free Code Camp?</h4>
<p class="negative-15">We dont accept donations. Instead, you should <a href="/shop">support us through our shop</a>.</p>
<p class="negative-15">We dont accept donations. Instead, you should <a href="/shop" target="_blank">support us through our shop</a>.</p>
.spacer
.row