1 2 3 4 5 6 7 8 9 10 11
var b = 2; assertEqual(fn(), 3); function fn() { var a = 1; a += b; return a; } test(fn);