Logical Operators
Created by Codedamn about a year ago
No description provided
11 Comments
Thanks Mehul, for creating this course <3
This content was deleted by the author
So thats how bribe works
This comment was deleted
// Basic calculator with parameters
function performMath(number1, number2, operator) { if (operator == '+') { return number1 + number2;
}
else if (operator == '*') {
return number1 * number2;
}
} const MathP = performMath(22, 33, '*'); console.log(MathP);
Ha Ha Ha! Only we Indians can Understand this 'Bribe' Logic...
logical operator && , || , !
A lot of things are possible with logical operators. Would love to have a chance to practice this in the course. This concept would be a bit tough to grasp if I had never been exposed to it before.
Perhaps even a reference to a document to see more examples. Googling "Logical operator examples in Javascript" had a wealth of information for those who may be looking for more information.
This comment was deleted
if any of you have issues with learning logical operators i would suggest to see this truth table https://press.rebus.community/programmingfundamentals/chapter/logical-operators/