From 5baec5e56a33a3889107b224b7ee321b7f6eb2de Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Sat, 15 Jul 2017 17:12:00 +0000 Subject: [PATCH] fix(challenges): Change "loop" to "function" (#15649) --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0fff6e2122..a3dee0e13f 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -3562,7 +3562,7 @@ "title": "Logical Order in If Else Statements", "description": [ "Order is important in if, else if statements.", - "The loop is executed from top to bottom so you will want to be careful of what statement comes first.", + "The function 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.", "Here's the first:", "
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\";
}
}
",