diff --git a/.gitignore b/.gitignore index 8b70d1c075..198aacf004 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ pids logs results tmp +.ds_store npm-debug.log node_modules diff --git a/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json b/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json index bb14209852..756f235968 100644 --- a/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json +++ b/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json @@ -217,7 +217,7 @@ "First, let's declare an html variable with var html = \"\";.", "Then, let's loop through our JSON, adding more HTML to that variable. When the loop is finished, we'll render it.", "Here's the code that does this:", - "
json.forEach(function(val) {
var keys = Object.keys(val);
html += \"<div class = 'cat'>\";
keys.forEach(function(key) {
html += \"<b>\" + key + \"</b>: \" + val[key] + \"<br>\";
});
html += \"</div><br>\";
});
" + "
json.forEach(function(val) {
var keys = Object.keys(val);
html += \"<div class = 'cat'>\";
keys.forEach(function(key) {
html += \"<strong>\" + key + \"</strong>: \" + val[key] + \"<br>\";
});
html += \"</div><br>\";
});
" ], "challengeSeed": [ "fccss", @@ -270,7 +270,7 @@ "En primer lugar, vamos a declarar una variable llamada html con var html = \"\";.", "Después, iteremos a traveś de nuestro JSON, añadiendo más HTML a esa variable. Cuando se termina el ciclo, vamos a presentarla. ", "Aquí está el código que hace esto:", - "
json.forEach(function(val) {
var keys = Object.keys(val);
html += \"<div class = 'cat'>\";
keys.forEach(function(key) {
html += \"<b>\" + key + \"</b>: \" + val[key] + \"<br>\";
});
html += \"</div><br>\";
});
" + "
json.forEach(function(val) {
var keys = Object.keys(val);
html += \"<div class = 'cat'>\";
keys.forEach(function(key) {
html += \"<strong>\" + key + \"</strong>: \" + val[key] + \"<br>\";
});
html += \"</div><br>\";
});
" ], "titlePt": "Converter dados JSON para HTML", "descriptionPt": [ @@ -279,7 +279,7 @@ "Em primeiro lugar, vamos declarar uma variável chamada html com var html = \"\";.", "Depois, vamos percorrer através do nosso JSON, adicionando mais HTML para a nossa variável. Quando essa iteração terminar, vamos apresentar o resultado.", "Aqui está o código que faz isso:", - "
json.forEach(function(val) {
var keys = Object.keys(val);
html += \"<div class = 'cat'>\";
keys.forEach(function(key) {
html += \"<b>\" + key + \"</b>: \" + val[key] + \"<br>\";
});
html += \"</div><br>\";
});
" + "
json.forEach(function(val) {
var keys = Object.keys(val);
html += \"<div class = 'cat'>\";
keys.forEach(function(key) {
html += \"<strong>\" + key + \"</strong>: \" + val[key] + \"<br>\";
});
html += \"</div><br>\";
});
" ] }, {