arg.js 665 B

1234567891011121314151617181920212223242526272829
  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 foo(a, b)
  6. {
  7. WScript.Echo(a, b);
  8. }
  9. function flap(a,b)
  10. {
  11. return foo(a+1,b+1);
  12. }
  13. function bar()
  14. {
  15. flap(1);
  16. new flap(1);
  17. flap(10,20);
  18. new flap(10,20);
  19. flap(100,200,300);
  20. new flap(100,200,300);
  21. }
  22. bar();
  23. WScript.Echo("");
  24. bar();