fix(challenges): Change "loop" to "function" (#15649)
parent
357865ce41
commit
5baec5e56a
|
@ -3562,7 +3562,7 @@
|
|||
"title": "Logical Order in If Else Statements",
|
||||
"description": [
|
||||
"Order is important in <code>if</code>, <code>else if</code> 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:",
|
||||
"<blockquote>function foo(x) {<br> if (x < 1) {<br> return \"Less than one\";<br> } else if (x < 2) {<br> return \"Less than two\";<br> } else {<br> return \"Greater than or equal to two\";<br> }<br>}</blockquote>",
|
||||
|
|
Loading…
Reference in New Issue