simpleSwitch.js 589 B

1234567891011121314151617181920
  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. var foo = function(){
  6. switch(1) {
  7. case 1:
  8. WScript.Echo(1);
  9. break;
  10. case 2:
  11. break;
  12. case 3:
  13. break;
  14. case 4:
  15. break;
  16. }
  17. }
  18. foo();
  19. foo();