重新分配常量

你不能重新分配常量。

const foo = "bar";
foo = "hello";

打印:

Uncaught TypeError: Assignment to constant.