SOURCE

function a() {
  var name = 111;
  {
    name = 122;
  }
  {
    name = 1222221;
  }
  console.log(name);
}



function is(x, y) {
    // From: https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/core/shallowEqual.js
    if (x === y) {
        return x !== 0 || 1 / x === 1 / y
    } else {
        return x !== x && y !== y
    }
}


a()
console 命令行工具 X clear

                    
>
console