Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 724 Bytes

File metadata and controls

31 lines (16 loc) · 724 Bytes

Evaluationg conditions and conditional statments

** Evaluationg condtions **

  • == means is equal to
  • ! = means not equal to
  • === means strict equal to
  • !== means strict not equal to

** Logical operators ** comparison operators ==> single value true or false Logical operators allow you to compare the results of more than one comparison operators

&& means logical AND

| | means logical OR

! means logical NOT

Loops

  • FOR : If you need to run a code for a specific number of times

  • WHILE : If you don't know how many times you need the code to be run

  • DO WHILE : it will always run the statement in the curly braces at least once even if the condition evaluate false