Skip to content

Commit

Permalink
Enhancement: add pipe symbol explanation (freeCodeCamp#14035)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zixu Zhao authored and QuincyLarson committed Mar 22, 2017
1 parent 8b23b1a commit b7173c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3372,6 +3372,7 @@
"title": "Comparisons with the Logical Or Operator",
"description": [
"The <dfn>logical or</dfn> operator (<code>||</code>) returns <code>true</code> if either of the <dfn>operands</dfn> is <code>true</code>. Otherwise, it returns <code>false</code>.",
"The <dfn>logical or</dfn> operator is composed of two pipe symbols (<code>|</code>). This can typically be found between your Backspace and Enter keys.",
"The pattern below should look familiar from prior waypoints:",
"<blockquote>if (num > 10) {<br> return \"No\";<br>}<br>if (num < 5) {<br> return \"No\";<br>}<br>return \"Yes\";</blockquote>",
"will return \"Yes\" only if <code>num</code> is between <code>5</code> and <code>10</code> (5 and 10 included). The same logic can be written as:",
Expand Down

0 comments on commit b7173c2

Please sign in to comment.