Simplify temp convert challenge
- Make grammar changes - Add code tags to numbers - Add note to calm students about foreign function and return statements - Add spaces in seed code to align code with indents - Remove unnecessary code from seed code
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
0fd376bc45
commit
69c8539679
@ -853,9 +853,10 @@
|
|||||||
"id": "56533eb9ac21ba0edf2244b3",
|
"id": "56533eb9ac21ba0edf2244b3",
|
||||||
"title": "Convert Celsius to Fahrenheit",
|
"title": "Convert Celsius to Fahrenheit",
|
||||||
"description": [
|
"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.",
|
"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.",
|
"The algorithm to convert from Celsius to Fahrenheit is the temperature in Celsius times <code>9/5</code>, plus <code>32</code>.",
|
||||||
"You are given a variable <code>celsius</code> representing a temperature in Celsius. Create a variable <code>fahrenheit</code> and apply the algorithm to assign it the corresponding temperature in Fahrenheit."
|
"You are given a variable <code>celsius</code> representing a temperature in Celsius. Create a variable <code>fahrenheit</code> and apply the algorithm to assign it the corresponding temperature in Fahrenheit.",
|
||||||
|
"<strong>Note</strong><br>Don't worry too much about the <code>function</code> and <code>return</code> statements as they will be covered in future challenges. For now, only use operators that you have already learned."
|
||||||
],
|
],
|
||||||
"releasedOn": "January 1, 2016",
|
"releasedOn": "January 1, 2016",
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
@ -864,11 +865,7 @@
|
|||||||
" ",
|
" ",
|
||||||
" ",
|
" ",
|
||||||
" // Only change code above this line",
|
" // Only change code above this line",
|
||||||
" if ( typeof fahrenheit !== 'undefined' ) {",
|
|
||||||
" return fahrenheit;",
|
" return fahrenheit;",
|
||||||
" } else {",
|
|
||||||
" return 'fahrenheit not defined';",
|
|
||||||
" }",
|
|
||||||
"}",
|
"}",
|
||||||
"",
|
"",
|
||||||
"// Change the inputs below to test your code",
|
"// Change the inputs below to test your code",
|
||||||
|
Reference in New Issue
Block a user