function test()
{
var x , y = 0;
do 
{
y=2;
x++;
}
while(x < 10);
document.writeln(y);
} 
by