diff --git a/seed/challenges/01-responsive-web-design/applied-accessibility.json b/seed/challenges/01-responsive-web-design/applied-accessibility.json
index 3ffae8a4d28..602b2250dc5 100644
--- a/seed/challenges/01-responsive-web-design/applied-accessibility.json
+++ b/seed/challenges/01-responsive-web-design/applied-accessibility.json
@@ -378,7 +378,7 @@
"title": "Improve Accessibility of Audio Content with the audio Element",
"description": [
"HTML5's audio
element gives semantic meaning when it wraps sound or audio stream content in your markup. Audio content also needs a text alternative to be accessible to the deaf or hard of hearing. This can be done with nearby text on the page or a link to a transcript.",
- "The audio
tag supports the controls
attribute. This shows the browser default play, pause, and other controls, and supports keyboard functionality. This is a boolean attribute, meaning it doesn't need a value, it's presence on the tag turns the setting on.",
+ "The audio
tag supports the controls
attribute. This shows the browser default play, pause, and other controls, and supports keyboard functionality. This is a boolean attribute, meaning it doesn't need a value, its presence on the tag turns the setting on.",
"Here's an example:",
"
<audio id="meowClip" controls>", "Note
<source src="audio/meow.mp3" type="audio/mpeg" />
<source src="audio/meow.ogg" type="audio/ogg" />
</audio>
.
) and bracket notation ([]
), similar to an array.",
"The dot operator is what you use when you know the name of the property you're trying to access ahead of time.",
- "Here is a sample of using the dot operator (.
) to read an object property:",
+ "Here is a sample of using the dot operator (.
) to read an object's property:",
"var myObj = {", "
prop1: \"val1\",
prop2: \"val2\"
};
var prop1val = myObj.prop1; // val1
var prop2val = myObj.prop2; // val2
testObj
using dot notation. Set the variable hatValue
equal to the object property hat
and set the variable shirtValue
equal to the object property shirt
."
+ "Read in the property values of testObj
using dot notation. Set the variable hatValue
equal to the object's property hat
and set the variable shirtValue
equal to the object's property shirt
."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [
@@ -4236,10 +4236,10 @@
},
{
"id": "56533eb9ac21ba0edf2244c8",
- "title": "Accessing Objects Properties with Bracket Notation",
+ "title": "Accessing Object Properties with Bracket Notation",
"description": [
- "The second way to access the properties of an object is bracket notation ([]
). If the property of the object you are trying to access has a space in it's name, you will need to use bracket notation.",
- "Here is a sample of using bracket notation to read an object property:",
+ "The second way to access the properties of an object is bracket notation ([]
). If the property of the object you are trying to access has a space in its name, you will need to use bracket notation.",
+ "Here is a sample of using bracket notation to read an object's property:",
"var myObj = {", "Note that property names with spaces in them must be in quotes (single or double).", "
\"Space Name\": \"Kirk\",
\"More Space\": \"Spock\"
};
myObj[\"Space Name\"]; // Kirk
myObj['More Space']; // Spock
var someProp = \"propName\";", "Here is one more:", "
var myObj = {
propName: \"Some Value\"
}
myObj[someProp]; // \"Some Value\"
var myDog = \"Hunter\";", - "Note that we do not use quotes around the variable name when using it to access the property because we are using the value of the variable, not the name", + "Note that we do not use quotes around the variable name when using it to access the property because we are using the value of the variable, not the name.", "
var dogs = {
Fido: \"Mutt\",\n Hunter: \"Doberman\",\n Snoopie: \"Beagle\"
}
var breed = dogs[myDog];
console.log(breed);// \"Doberman\"
playerNumber
variable to lookup player 16
in testObj
using bracket notation. Then assign that name to the player
variable."
+ "Use the playerNumber
variable to look up player 16
in testObj
using bracket notation. Then assign that name to the player
variable."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [
@@ -4543,7 +4543,7 @@
"Here is an example of a simple reverse alphabet lookup:",
"var alpha = {", "
1:\"Z\",
2:\"Y\",
3:\"X\",
4:\"W\",
...
24:\"C\",
25:\"B\",
26:\"A\"
};
alpha[2]; // \"Y\"
alpha[24]; // \"C\"
var value = 2;
alpha[value]; // \"Y\"
lookup
. Use it to lookup val
and assign the associated string to the result
variable."
+ "Convert the switch statement into an object called lookup
. Use it to look up val
and assign the associated string to the result
variable."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [
diff --git a/seed/challenges/04-data-visualization/json-apis-and-ajax.json b/seed/challenges/04-data-visualization/json-apis-and-ajax.json
index a99c313eb34..aa17268d0c4 100644
--- a/seed/challenges/04-data-visualization/json-apis-and-ajax.json
+++ b/seed/challenges/04-data-visualization/json-apis-and-ajax.json
@@ -256,7 +256,7 @@
"You learned earlier that objects contain \"key-value pairs\" that are separated by commas. In the Cat Photo example, the first object has \"id\":0
where \"id\" is a key and 0 is its corresponding value. Similarly, there are keys for \"imageLink\", \"altText\", and \"codeNames\". Each cat photo object has these same keys, but with different values.",
"Another interesting \"key-value pair\" in the first object is \"codeNames\":[\"Juggernaut\",\"Mrs. Wallace\",\"ButterCup\"]
. Here \"codeNames\" is the key and its value is an array of three strings. It's possible to have arrays of objects as well as a key with an array as a value.",
"Remember how to access data in arrays and objects. Arrays use bracket notation to access a specific index of an item. Objects use either bracket or dot notation to access the value of a given property. Here's an example that prints the \"altText\" of the first cat photo - note that the parsed JSON data in the editor is saved in a variable called json
:",
- "console.log(json[0].altText);", + "
// Prints \"A white cat wearing a green helmet shaped melon on it's head.\"
console.log(json[0].altText);", "
// Prints \"A white cat wearing a green helmet shaped melon on its head.\"
codeNames
array. You should use bracket and dot notation on the object (which is saved in the variable json
) to access the value."
],
@@ -337,7 +337,7 @@
"forEach
method to loop over the JSON data and create the HTML elements to display it.",
"Here is some example JSON",
- "[ { \"id\":0, \"imageLink\":\"https://s3.amazonaws.com/freecodecamp/funny-cat.jpg\", \"altText\":\"A white cat wearing a green helmet shaped melon on it's head. \", \"codeNames\":[ \"Juggernaut\", \"Mrs. Wallace\", \"Buttercup\" ] }]" + "
[ { \"id\":0, \"imageLink\":\"https://s3.amazonaws.com/freecodecamp/funny-cat.jpg\", \"altText\":\"A white cat wearing a green helmet shaped melon on its head. \", \"codeNames\":[ \"Juggernaut\", \"Mrs. Wallace\", \"Buttercup\" ] }]" ], "challengeSeed": [ "