Introducing Else If Statements
This commit is contained in:
committed by
SaintPeter
parent
bfa86770ba
commit
33094f2dec
@ -2939,8 +2939,8 @@
|
||||
"id": "56533eb9ac21ba0edf2244db",
|
||||
"title": "Introducing Else If Statements",
|
||||
"description": [
|
||||
"If you have multiple conditions that need to be met, you can chain <code>if</code> statements together with <code>else if</code> statements.",
|
||||
"<blockquote>if (num > 15) {<br /> return \"Bigger then 15\";<br />} else if (num < 5) {<br /> return \"Smaller than 5\";<br />} else {<br /> return \"Between 5 and 15\";<br />}</blockquote>",
|
||||
"If you have multiple conditions that need to be addressed, you can chain <code>if</code> statements together with <code>else if</code> statements.",
|
||||
"<blockquote>if (num > 15) {<br> return \"Bigger then 15\";<br>} else if (num < 5) {<br> return \"Smaller than 5\";<br>} else {<br> return \"Between 5 and 15\";<br>}</blockquote>",
|
||||
"<h4>Instructions<h4>Convert the logic to use <code>else if</code> statements."
|
||||
],
|
||||
"releasedOn": "11/27/2015",
|
||||
|
Reference in New Issue
Block a user