blob: 1a13b19b8c32647097c37ff45ff9f854d152351c [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var a = 1;
var b = 0;
var foo = function() {
switch(a) {
case b:
WScript.Echo("b");
break;
case 1:
WScript.Echo("1");
break;
case 2:
WScript.Echo("2");
break;
case 3:
WScript.Echo("3");
break;
case 4:
WScript.Echo("4");
break;
}
}
var c = "3";
foo();
a = --c;
foo();