This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
What is logical operator? | |
Logical operators usually used to ensure logic between variables and values. | |
There are 3 types of logical operators. | |
=>> and / && - It used between 2 operands and if any of them are true then whole thing will true or if any of them are false then whole thing will false. Or if both of statement false full thing will be false. | |
=> OR / || - It also use between 2 operands and if any of operand true will pass true, if both operand true also will pass true. If only both statements are false then will pass false. |