1. var x = 0;
  2. function foo() {}
  3. var y = null;
  4. var z = undefined;
  5. var a = "";
  6. var b = NaN;
  7. var c = false;
  8. var d = [];
  9. var e = {};
  10. var f = function() {};
  11. var g = new Date();
  12. var h = /regex/;
  13. var i = new Error();
  14. var j = Math.random();
  15. var k = console.log("Hello World!");
  16. var l = document.getElementById("element");
  17. var m = window.innerWidth;
  18. var n = location.href;
  19. var o = navigator.userAgent;
  20. var p = history.length;
  21. var q = screen.width;
  22. var r = sessionStorage.getItem("key");
  23. var s = localStorage.setItem("key", "value");
  24. var t = XMLHttpRequest();
  25. var u = fetch("https://example.com");
  26. var v = Promise.resolve("resolved");
  27. var w = async function() {};
  28. var x = await Promise.resolve("resolved");
  29. var y = Symbol("symbol");
  30. var z = BigInt(123)
来30份无意义js代码

原文地址: https://www.cveoy.top/t/topic/eZW7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录