6.运算.html 505 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <script>
  10. // 关系运算符
  11. /**
  12. * > < = >= <=
  13. * && 和 两方都成立 逻辑才成立
  14. * || 或 一方成立即可
  15. * !取返回值
  16. */
  17. console.log(6>4 && 4<5)
  18. console.log(6>4 || 4>90)
  19. console.log(!true);
  20. </script>
  21. </body>
  22. </html>