Change the unshift() example to make it less confusing to beginners

This commit is contained in:
Leon Feng
2015-09-12 23:49:24 +08:00
parent 6dad104369
commit fdecf1a5cf

View File

@ -643,8 +643,8 @@
"challengeSeed": [
"var ourArray = [\"Stimpson\", \"J\", [\"cat\"]];",
"ourArray.shift();",
"ourArray.unshift([\"happy\", \"joy\"]);",
"// ourArray now equals [[\"happy\", \"joy\"], \"J\", [\"cat\"]]",
"ourArray.unshift(\"happy\");",
"// ourArray now equals [\"happy\", \"J\", [\"cat\"]]",
"",
"var myArray = [\"John\", 23, [\"dog\", 3]];",
"myArray.shift();",