var x = 0; { var x = 2; //compiler error, variable x already defined }
var x = 0; { var x = 2; //ОК, variable x in parent block is shaded }