q.js 795 B

12345678910111213141516171819202122232425262728293031323334
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. let x;
  6. WScript.Echo(x);
  7. {
  8. let x = 5;
  9. WScript.Echo(x);
  10. }
  11. WScript.Echo(x);
  12. for (var a in this) {
  13. if (a === "SCA" || a === "ImageData")
  14. continue;
  15. WScript.Echo(a);
  16. }
  17. WScript.Echo();
  18. function f() {
  19. const x = 'a';
  20. WScript.Echo(x);
  21. if (1 > 0)
  22. {
  23. let x;
  24. WScript.Echo(x);
  25. }
  26. WScript.Echo(x);
  27. WScript.Echo(f);
  28. }f();
  29. WScript.Echo(x);