Home
<!DOCTYPE html> <html> <body> <h1>Demo: if condition</h1> <script> if(1=="1") { alert("== operator does not consider types of operands"); } if(1==="1") { alert("=== operator considers types of operands"); } </script> </body> </html>
Result: