From 0957ba6abbc0075eefa48e45df263485c2c609f6 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Tue, 12 Jan 2016 03:04:13 +0530 Subject: [PATCH] fixes FreeCodeCamp/FreeCodeCamp#6066 --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 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 e89d482cf4..ec7ca428c0 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -2662,9 +2662,9 @@ "The loop is executed from top to bottom so you will want to be careful of what statement comes first.", "Take these two functions as an example.", "Heres the first:", - "
function foo(x) {
if (x < 1) {
return \"Less than one\";
} else if (num < 2) {
return \"Less than two\";
} else {
return \"Greater than or equal to two\";
}
}
", + "
function foo(x) {
if (x < 1) {
return \"Less than one\";
} else if (x < 2) {
return \"Less than two\";
} else {
return \"Greater than or equal to two\";
}
}
", "And the second just switches the order of the statements:", - "
function bar(x) {
if (x < 2) {
return \"Less than two\";
} else if (num < 1) {
return \"Less than one\";
} else {
return \"Greater than or equal to two\";
}
}
", + "
function bar(x) {
if (x < 2) {
return \"Less than two\";
} else if (x < 1) {
return \"Less than one\";
} else {
return \"Greater than or equal to two\";
}
}
", "While these two functions look nearly identical if we pass a number to both we get different outputs.", "
foo(0) // \"Less than one\"
bar(0) // \"Less than two\"
", "

Instructions

",