function test(a) { var x = 10; if (a > x) { return 1; } else { x = x + 1; return x; } }