fix(challenge): update tail section for "Return a Value from a Function with Return".
This commit is contained in:
@ -2636,7 +2636,7 @@
|
|||||||
"<blockquote>function plusThree(num) {<br> return num + 3;<br>}<br>var answer = plusThree(5); // 8</blockquote>",
|
"<blockquote>function plusThree(num) {<br> return num + 3;<br>}<br>var answer = plusThree(5); // 8</blockquote>",
|
||||||
"<code>plusThree</code> takes an <dfn>argument</dfn> for <code>num</code> and returns a value equal to <code>num + 3</code>.",
|
"<code>plusThree</code> takes an <dfn>argument</dfn> for <code>num</code> and returns a value equal to <code>num + 3</code>.",
|
||||||
"<hr>",
|
"<hr>",
|
||||||
"Create a function <code>timesFive</code> that accepts one argument, multiplies it by <code>5</code>, and returns the new value."
|
"Create a function <code>timesFive</code> that accepts one argument, multiplies it by <code>5</code>, and returns the new value. See the last line in the editor for an example of how you can test your <code>timesFive</code> function."
|
||||||
],
|
],
|
||||||
"releasedOn": "January 1, 2016",
|
"releasedOn": "January 1, 2016",
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
@ -2647,11 +2647,11 @@
|
|||||||
"",
|
"",
|
||||||
"// Only change code below this line",
|
"// Only change code below this line",
|
||||||
"",
|
"",
|
||||||
""
|
"",
|
||||||
],
|
"",
|
||||||
"tail": [
|
"console.log(minusSeven(10));"
|
||||||
"(function() { if(typeof timesFive === 'function'){ return \"timesfive(5) === \" + timesFive(5); } else { return \"timesFive is not a function\"} })();"
|
|
||||||
],
|
],
|
||||||
|
"tail": [],
|
||||||
"solutions": [
|
"solutions": [
|
||||||
"function timesFive(num) {\n return num * 5;\n}"
|
"function timesFive(num) {\n return num * 5;\n}"
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user