From 413e24f83af76bc2275f1b788d6e2a36fed04a91 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Wed, 30 Dec 2015 21:20:30 -0800 Subject: [PATCH] Fix vague variable names in Celsius to Fahrenheit --- .../basic-javascript.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 fe0318e0ac..21b88ea249 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -775,19 +775,19 @@ "description": [ "To test your learning you will create a solution \"from scratch\". Place your code between the indicated lines and it will be tested against multiple test cases.", "The algorithm to convert from Celsius to Fahrenheit is the temperature in Celsius times 9/5, plus 32.", - "You are given a variable Tc representing a temperature in Celsius. Create a variable Tf and apply the algorithm to assign it the corresponding temperature in Fahrenheit." + "You are given a variable celsius representing a temperature in Celsius. Create a variable fahrenheit and apply the algorithm to assign it the corresponding temperature in Fahrenheit." ], "releasedOn": "January 1, 2016", "challengeSeed": [ - "function convert(Tc) {", + "function convert(celsius) {", " // Only change code below this line", " ", "", " // Only change code above this line", - " if(typeof Tf !== 'undefined') {", - " return Tf;", + " if ( typeof fahrenheit !== 'undefined' ) {", + " return fahrenheit;", " } else {", - " return \"Tf not defined\";", + " return 'fahrenheit not defined';", " }", "}", "", @@ -795,7 +795,7 @@ "convert(30);" ], "solutions": [ - "function convert(Tc) {\n var Tf = Tc * 9/5 + 32;\n if(typeof Tf !== 'undefined') {\n return Tf;\n } else {\n return \"Tf not defined\";\n }\n}" + "function convert(celsius) {\n var fahrenheit = celsius * 9/5 + 32;\n if ( typeof fahrenheit !== 'undefined' ) {\n return fahrenheit;\n } else {\n return 'fahrenheit not defined';\n }\n}" ], "tests": [ "assert(typeof convert(0) === 'number', 'message: convert(0) should return a number');", @@ -5141,4 +5141,4 @@ "isBeta": "true" } ] -} \ No newline at end of file +}