diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json
index 5aa5b7549e..9105e6d115 100644
--- a/challenges/basic-javascript.json
+++ b/challenges/basic-javascript.json
@@ -743,7 +743,7 @@
"var ourDog = {
",
" \"name\": \"Camper\",
",
" \"legs\": 4,
",
- " \"tails\": 1,
,",
+ " \"tails\": 1,
",
" \"friends\": [\"everything!\"]
",
"};
",
"Since he's a particularly happy dog, let's change his name to \"Happy Camper\". Here's how we update his object's name property:",
diff --git a/challenges/json-apis-and-ajax.json b/challenges/json-apis-and-ajax.json
index 5d3b0a5e6f..7e8200980e 100644
--- a/challenges/json-apis-and-ajax.json
+++ b/challenges/json-apis-and-ajax.json
@@ -160,14 +160,14 @@
"title": "Convert JSON Data to HTML",
"description": [
"Now that we're getting data from a JSON API, let's display it in our HTML.",
- "We can use the .map()
method to loop through our data and modify our HTML elements.",
+ "We can use the .forEach()
method to loop through our data and modify our HTML elements.",
"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.map(function(val) {
",
+ "json.forEach(function(val) {
",
" var keys = Object.keys(val);
",
" html += \"<div class = 'cat'>\";
",
- " keys.map(function(key) {
",
+ " keys.forEach(function(key) {
",
" html += \"<b>\" + key + \"</b>: \" + val[key] + \"<br>\";
",
" });
",
" html += \"</div><br>\";
",