From 8d5820e24b8bad007cee2c29fc4a2b48a655077e Mon Sep 17 00:00:00 2001 From: Chad Kreutzer Date: Fri, 1 Jul 2016 09:05:36 +0000 Subject: [PATCH] improve challengeSeed for clarity and uniformity in Write Reusable JavaScript with Functions, Passing Values to Functions with Arguments, and Return a Value from a Function with Return removed comma Changed to reflect ourUniqueName()/uniqueName() pattern throughout removed debugging artifact change ourFunction(1, 9); to ourRandomRange(1, 9); Remove second function calls where appropriate. --- .../basic-javascript.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index bbb56f5a6e..997a8368df 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -920,7 +920,6 @@ "", "// Only change code below this line", "", - "", "" ], "tail": [ @@ -1352,6 +1351,7 @@ "", "// Only change code below this line", "firstLetterOfLastName = lastName;", + "", "" ], "tail": [ @@ -1611,7 +1611,7 @@ ], "challengeSeed": [ "// Example", - "var array = [\"John\", 23];", + "var ourArray = [\"John\", 23];", "", "// Only change code below this line.", "var myArray = [];", @@ -2077,14 +2077,13 @@ ], "challengeSeed": [ "// Example", - "function reusableFunction() {", + "function ourReusableFunction() {", " console.log(\"Heyya, World\");", "}", "", - "reusableFunction();", + "ourReusableFunction();", "", "// Only change code below this line", - "", "" ], "tail": [ @@ -2157,10 +2156,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.", "", @@ -2622,7 +2621,7 @@ ], "challengeSeed": [ "// Example", - "function ourFunction(isItTrue) {", + "function ourTrueOrFalse(isItTrue) {", " if (isItTrue) { ", " return \"Yes, it's true\";", " }", @@ -4740,6 +4739,7 @@ "var myArray = [];", "", "// Only change code below this line.", + "", "" ], "tail": [ @@ -5092,12 +5092,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.", "",