View on GitHub

learning-journal

Learn how to compare in Javascript

First we going to check the tools that let me to compare between thing which is called comparsion operaitors

We have some logical operaitors to be used and they are (AND,OR,NOT)

image of operaitors

other way to write the above logical is like False and anything or true or anything make it stops if it found a falsu in the first one and the second one it stops if there is any true.

We use the logical operaitors in loops to make sure the the user has done the exact thing I want him to do Like for and while.

image of loops