03_变量.html 450 B

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>变量</title>
  6. </head>
  7. <body>
  8. </body>
  9. </html>
  10. <script>
  11. <!--变量-->
  12. let a = 20.0;
  13. let b = 20;
  14. let c = "hello world";
  15. console.log(a)
  16. console.log(b)
  17. console.log(c)
  18. let d = true;
  19. console.log(d)
  20. //基础语法 if for 一模一样
  21. let e = new Object();
  22. console.log(e)
  23. let f = new Date();
  24. console.log(f)
  25. </script>