📜  为什么使用 const 而不是 let? - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:55.955000             🧑  作者: Mango

代码示例1
const only prevents re-assigning, it doesn't make the entire object immutable. ... It's useful to use const instead of let , because it prevents you from accidentally overwriting variables