AND OR NOT Equal logical operatorsLogical operators are mostly consist of AND OR NOT and its combinations. We will discuss more on this with examples for better understanding.
We will use if condition to check and then document.write to print the result. Here is the code.
AND is also written as &&
|my_var=="5" && my_var2=="plus2net"||True|
|my_var==="5" && my_var2=="plus2net"||False|
|my_var==5 || my_var2=="plus2net"||True|
|my_var==4 || my_var2=="plus2net"||True|
Be the first to post comment on this article :
For Loop with break statement|
Try Catch to handle run time errors in different browsers
Logical operators AND OR NOT
Comparison operators Equal to, Less than, greater than
throw to manage error message and program control
Checking type of variable by using typeof()
Sample codes for beginners
Functions and variables