Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript IF with OR Operators</title> </head> <body> <pre> <script type="text/javascript"> var a, b; if (a || b) // false || false document.write("a and b both are defined."); else document.write("a and b undefined."); </script> </pre> </body> </html>
  Preview Arrow