Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Comparison Operators</title> </head> <body> <script> let x = 25; let y = 35; let z = "25"; document.write(x == z); // Prints: true document.write("<br>"); document.write(x === z); // Prints: false document.write("<br>"); document.write(x != y); // Prints: true document.write("<br>"); document.write(x !== z); // Prints: true document.write("<br>"); document.write(x < y); // Prints: true document.write("<br>"); document.write(x > y); // Prints: false document.write("<br>"); document.write(x <= y); // Prints: true document.write("<br>"); document.write(x >= y); // Prints: false </script> </body> </html>