diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json index dcce43be5b..0cfcdfeb6c 100755 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -2638,7 +2638,7 @@ "
function plusThree(num) {", "
return num + 3;
}
var answer = plusThree(5); // 8
plusThree
takes an argument for num
and returns a value equal to num + 3
.",
"timesFive
that accepts one argument, multiplies it by 5
, and returns the new value."
+ "Create a function timesFive
that accepts one argument, multiplies it by 5
, and returns the new value. See the last line in the editor for an example of how you can test your timesFive
function."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [
@@ -2649,11 +2649,11 @@
"",
"// Only change code below this line",
"",
- ""
- ],
- "tail": [
- "(function() { if(typeof timesFive === 'function'){ return \"timesfive(5) === \" + timesFive(5); } else { return \"timesFive is not a function\"} })();"
+ "",
+ "",
+ "console.log(minusSeven(10));"
],
+ "tail": [],
"solutions": [
"function timesFive(num) {\n return num * 5;\n}"
],