From 6aedeaa7f5339229c8a0c9df54501448780de8cc Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Sat, 28 Jan 2017 00:25:31 +0100 Subject: [PATCH] fix(challenge): update tail section for "Return a Value from a Function with Return". --- .../basic-javascript.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 c73d94542b..9fbd36b04c 100755 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -2636,7 +2636,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.", "
", - "Create a function 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": [ @@ -2647,11 +2647,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}" ], @@ -5719,4 +5719,4 @@ "translations": {} } ] -} \ No newline at end of file +}