使用let定义的变量在声明之前是不会初始化的,不像使用var定义的变量那样初始值为undefined
    let变量声明之前访问它会导致ReferenceError,在变量声明之前的区域便叫:暂存死区;

    1. // prints out 'undefined'
    2. console.log(typeof undeclaredVariable);
    3. // results in a 'ReferenceError'
    4. console.log(typeof i);
    5. let i = 10;