View On GitHub
reading-notes
Reading Notes for Codefellows!
Project maintained by
AlanYHung
Hosted on GitHub Pages — Theme by
mattgraham
Code 102
Reading 08
Comparison Operator Syntax
== (is equal to)
=== (strict equal to / both data type and value)
!= (not equal to)
!== (strict not equal to / both data type and value)
> (greater than)
>= (greater than or equal to)
< (less than)
<= (less than or equal to)
Logical Operator Syntax
&& (Logical And / Both values must be True to return True)
|| (Logical OR / Any Value can be True to return True)
! (Logical Not / Returns the opposite value)
Loops
For Loops (Will perform code a set amount of times)
While Loops (Will Loop code until conditional statement dictates ending)
Do While Loops (Will always run code once and terminate when conditional statement dictates)
<– Back