let和var的区别

  • 全局污染
  • 块级作用域
  • 暂时性死区
  • 重复声明

let和const区别

  • const是声明的常量