reading-notes

Reading Notes for Codefellows!


Project maintained by AlanYHung Hosted on GitHub Pages — Theme by mattgraham

Code 102

Reading 08

Comparison Operator Syntax

  1. == (is equal to)
  2. === (strict equal to / both data type and value)
  3. != (not equal to)
  4. !== (strict not equal to / both data type and value)
  5. > (greater than)
  6. >= (greater than or equal to)
  7. < (less than)
  8. <= (less than or equal to)

Logical Operator Syntax

  1. && (Logical And / Both values must be True to return True)
  2. || (Logical OR / Any Value can be True to return True)
  3. ! (Logical Not / Returns the opposite value)

Loops

  1. For Loops (Will perform code a set amount of times)
  2. While Loops (Will Loop code until conditional statement dictates ending)
  3. Do While Loops (Will always run code once and terminate when conditional statement dictates)

<– Back