fix delete is a keyword not a function

This commit is contained in:
Berkeley Martinez
2015-08-21 12:37:47 -07:00
parent d87b0457fe
commit c32e89baff

View File

@ -759,7 +759,7 @@
"For example, we can add properties to objects like this:", "For example, we can add properties to objects like this:",
"<code>myObject.myProperty = \"myValue\";</code>", "<code>myObject.myProperty = \"myValue\";</code>",
"We can also delete them like this:", "We can also delete them like this:",
"<code>delete(myObject.myProperty);</code>", "<code>delete myObject.myProperty;</code>",
"Let's add the property \"bark\", and delete the property \"tails\"." "Let's add the property \"bark\", and delete the property \"tails\"."
], ],
"tests":[ "tests":[
@ -775,7 +775,7 @@
"// };", "// };",
"", "",
"// ourDog.bark = \"arf!\";", "// ourDog.bark = \"arf!\";",
"// delete(ourDog.tails);", "// delete ourDog.tails;",
"", "",
"var myDog = {", "var myDog = {",
" \"name\": \"Camper\",", " \"name\": \"Camper\",",