reading-notes

View on GitHub

Operators and Loops

There are Tow Types of Operators : Comparison Operators and Logical Operators

Comparison operators :

Comparison operators allow you to compare two values. it used in logical statements to determine equality or difference between variables or values .

Operator Description
equal to ==
equal value and equal type ===
not equal !=
not equal value or not equal type !=
greater than >
less than <
greater than or equal to >=
less than or equal to <=

Logical Operators

Logical operators are used to determine the logic between variables or values.

&& (and)

|| (or)

! (not)

Loop

image

I loop is a programming structure that repeats a sequence of instructions until a specific condition is met.

loop life cycle: