Forum Discussion
TanyaYatskovska
Alumni
14 years agoHi Kumar,
Look into the following example:
//JScript
var a=1;
var b=2;
var c=3;
var d=4;
function test1()
{
a = a + 1;
b = b + 1;
c = c + 1;
d = d + 1;
}
function test2()
{
a = a + 1;
b = b + 1;
c = c + 1;
d = d + 1;
}
function test3()
{
a = a + 1;
b = b + 1;
c = c + 1;
d = d + 1;
}
function main()
{
Log.Message("a=" + a + "; b=" + b + "; c=" + c +"; d=" + d);
test1();
test2();
test3();
Log.Message("a=" + a + "; b=" + b + "; c=" + c +"; d=" + d);
}
The Test log contains the following:
a=1; b=2; c=3; d=4
a=4; b=5; c=6; d=7