Skip to main content

Command Palette

Search for a command to run...

Logical Operators

Updated
•1 min read•View as Markdown
Logical Operators
D

i am a student, i am currently doing coding classes, i do JavaScript, HTML and CSS.

What are Logical Operators ?

What are Logical operators used for ?

What are the symbols of Logical Operators ?

What are Logical Operators ?

A logical operator is a symbol or word used to connect two or more expressions, Common logical operators include AND, OR, and NOT. Logical operators operate on boolean expressions to combine the results of these boolean expression into a single boolean value.

What are Logical operators used for ?

Logical Operators are used to perform logical operations and include AND, OR, or NOT. Boolean Operators include AND, OR, XOR, or NOT and can have one of two values, true or false.

What are the symbols of Logical Operators ?

&& logical AND x && y

|| logical OR x || y

! logical NOT ! x

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1661590193019/Z8JcBCmkO.png

Watch this video to understand more on Logical Operators

Modulo Operator

the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another.

Examples :

align="left") https://www.youtube.com/watch?v=PkRnbBXcdTw