LogicalOperator-2

 

Logical Operator === will check for equality using equal value and equal type and return true and false.

 
 
 
<!DOCTYPE html> <html> <head> </head> <body> <p id="sample"></p> <script> var x = 6; var y = 3; document.getElementById("sample").innerHTML = (x === 5 || y === 5) + "<br>" + (x === 6 || y === 5) + "<br>" + (x === 6 || y === 3); </script> </body> </html>
Output