What is the output for the following
function test(x) {
while(x < 5)
{ x++; }
return x; }
alert(test(2));
6
3
2