Changed the object lessons to use dot notation instead of bracket

Fix https://github.com/FreeCodeCamp/freecodecamp/issues/1564
This commit is contained in:
benmcmahon100
2015-08-05 17:31:42 +01:00
parent b6dc52cf08
commit a784d9e960

View File

@ -259,7 +259,7 @@
"challengeSeed": [ "challengeSeed": [
"var firstName = \"Madeline\";", "var firstName = \"Madeline\";",
"", "",
"var thirdToLastLetterOfFirstName = firstName[firstName.length - 2];", "var thirdToLastLetterOfFirstName = firstName[firstName.length - 3];",
"", "",
"var lastName = \"Chen\";", "var lastName = \"Chen\";",
"", "",
@ -725,9 +725,9 @@
"", "",
"Now that we have an objects we need to know how to add and remove properties from it", "Now that we have an objects we need to know how to add and remove properties from it",
"We add properties to objects like this", "We add properties to objects like this",
"<code>myObject['myProperty'] = \"myValue\";</code>", "<code>myObject.myProperty = \"myValue\";</code>",
"They can also be deleted like this", "They can also be deleted like this",
"<code>delete(myObject[\"myProperty\"]);</code>", "<code>delete(myObject.myProperty);</code>",
"Let's add the property bark", "Let's add the property bark",
"" ""
], ],