Getting Started with Modern JavaScript — Variables and Scope

I think, the first example within Function scope section in slightly controversial.

How var declarations actually work within a conditional block is little complicated - annex-b. It’s probably best to remove the if(true) conditional and just keep var car within a block scope.