alert(x); var x = 10; alert(x); x = 20; function x() { } alert(x); if (true) { var a = 1; } else { var b = 2; } alert(a); alert(b); alert(c);