JavaScript const variables has block scope

The x declared in the block, in this example, is not the same as the x declared outside the block: