concatmulti_loop.js 650 B

123456789101112131415161718192021222324
  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. function test()
  6. {
  7. var s = "1";
  8. for (var i = 0; i < 2; i++)
  9. {
  10. if (i == 0)
  11. {
  12. s = "1000000" + s + "1";
  13. }
  14. else
  15. {
  16. s -= 1;
  17. }
  18. }
  19. WScript.Echo(s);
  20. }
  21. test();
  22. test();