Merge pull request #9485 from ChadKreutzer/branch/fix/confusing-comments-issue9546

Make example functions in Challenge seed unique
pull/9534/head
Eric Leung 2016-07-03 16:53:00 -07:00 committed by GitHub
commit 6c989a4a9d
1 changed files with 10 additions and 10 deletions

View File

@ -920,7 +920,6 @@
"", "",
"// Only change code below this line", "// Only change code below this line",
"", "",
"",
"" ""
], ],
"tail": [ "tail": [
@ -1351,6 +1350,7 @@
"", "",
"// Only change code below this line", "// Only change code below this line",
"firstLetterOfLastName = lastName;", "firstLetterOfLastName = lastName;",
"",
"" ""
], ],
"tail": [ "tail": [
@ -1610,7 +1610,7 @@
], ],
"challengeSeed": [ "challengeSeed": [
"// Example", "// Example",
"var array = [\"John\", 23];", "var ourArray = [\"John\", 23];",
"", "",
"// Only change code below this line.", "// Only change code below this line.",
"var myArray = [];", "var myArray = [];",
@ -2076,14 +2076,13 @@
], ],
"challengeSeed": [ "challengeSeed": [
"// Example", "// Example",
"function reusableFunction() {", "function ourReusableFunction() {",
" console.log(\"Heyya, World\");", " console.log(\"Heyya, World\");",
"}", "}",
"", "",
"reusableFunction();", "ourReusableFunction();",
"", "",
"// Only change code below this line", "// Only change code below this line",
"",
"" ""
], ],
"tail": [ "tail": [
@ -2156,10 +2155,10 @@
], ],
"challengeSeed": [ "challengeSeed": [
"// Example", "// Example",
"function functionWithArgs(a, b) {", "function ourFunctionWithArgs(a, b) {",
" console.log(a - b);", " console.log(a - b);",
"}", "}",
"functionWithArgs(10, 5); // Outputs 5", "ourFunctionWithArgs(10, 5); // Outputs 5",
"", "",
"// Only change code below this line.", "// Only change code below this line.",
"", "",
@ -2621,7 +2620,7 @@
], ],
"challengeSeed": [ "challengeSeed": [
"// Example", "// Example",
"function ourFunction(isItTrue) {", "function ourTrueOrFalse(isItTrue) {",
" if (isItTrue) { ", " if (isItTrue) { ",
" return \"Yes, it's true\";", " return \"Yes, it's true\";",
" }", " }",
@ -4739,6 +4738,7 @@
"var myArray = [];", "var myArray = [];",
"", "",
"// Only change code below this line.", "// Only change code below this line.",
"",
"" ""
], ],
"tail": [ "tail": [
@ -5091,12 +5091,12 @@
], ],
"challengeSeed": [ "challengeSeed": [
"// Example", "// Example",
"function ourFunction(ourMin, ourMax) {", "function ourRandomRange(ourMin, ourMax) {",
"", "",
" return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;", " return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;",
"}", "}",
"", "",
"ourFunction(1, 9);", "ourRandomRange(1, 9);",
"", "",
"// Only change code below this line.", "// Only change code below this line.",
"", "",