Merge pull request #9485 from ChadKreutzer/branch/fix/confusing-comments-issue9546
Make example functions in Challenge seed uniquepull/9534/head
commit
6c989a4a9d
|
@ -920,7 +920,6 @@
|
|||
"",
|
||||
"// Only change code below this line",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"tail": [
|
||||
|
@ -1351,6 +1350,7 @@
|
|||
"",
|
||||
"// Only change code below this line",
|
||||
"firstLetterOfLastName = lastName;",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"tail": [
|
||||
|
@ -1610,7 +1610,7 @@
|
|||
],
|
||||
"challengeSeed": [
|
||||
"// Example",
|
||||
"var array = [\"John\", 23];",
|
||||
"var ourArray = [\"John\", 23];",
|
||||
"",
|
||||
"// Only change code below this line.",
|
||||
"var myArray = [];",
|
||||
|
@ -2076,14 +2076,13 @@
|
|||
],
|
||||
"challengeSeed": [
|
||||
"// Example",
|
||||
"function reusableFunction() {",
|
||||
"function ourReusableFunction() {",
|
||||
" console.log(\"Heyya, World\");",
|
||||
"}",
|
||||
"",
|
||||
"reusableFunction();",
|
||||
"ourReusableFunction();",
|
||||
"",
|
||||
"// Only change code below this line",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"tail": [
|
||||
|
@ -2156,10 +2155,10 @@
|
|||
],
|
||||
"challengeSeed": [
|
||||
"// Example",
|
||||
"function functionWithArgs(a, b) {",
|
||||
"function ourFunctionWithArgs(a, b) {",
|
||||
" console.log(a - b);",
|
||||
"}",
|
||||
"functionWithArgs(10, 5); // Outputs 5",
|
||||
"ourFunctionWithArgs(10, 5); // Outputs 5",
|
||||
"",
|
||||
"// Only change code below this line.",
|
||||
"",
|
||||
|
@ -2621,7 +2620,7 @@
|
|||
],
|
||||
"challengeSeed": [
|
||||
"// Example",
|
||||
"function ourFunction(isItTrue) {",
|
||||
"function ourTrueOrFalse(isItTrue) {",
|
||||
" if (isItTrue) { ",
|
||||
" return \"Yes, it's true\";",
|
||||
" }",
|
||||
|
@ -4739,6 +4738,7 @@
|
|||
"var myArray = [];",
|
||||
"",
|
||||
"// Only change code below this line.",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"tail": [
|
||||
|
@ -5091,12 +5091,12 @@
|
|||
],
|
||||
"challengeSeed": [
|
||||
"// Example",
|
||||
"function ourFunction(ourMin, ourMax) {",
|
||||
"function ourRandomRange(ourMin, ourMax) {",
|
||||
"",
|
||||
" return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;",
|
||||
"}",
|
||||
"",
|
||||
"ourFunction(1, 9);",
|
||||
"ourRandomRange(1, 9);",
|
||||
"",
|
||||
"// Only change code below this line.",
|
||||
"",
|
||||
|
|
Loading…
Reference in New Issue