The “const” Deception

2023-04-24来源 Josh ComeauEnglish

The “const” keyword in JavaScript is used to create constants, variables that can't change. Curiously, though, we do seem to be able to edit objects and arrays that are created using “const”. In this tutorial, we're going to dig into the incredibly-important distinction between “assignment” and “mutation” in JavaScript.

Keep reading.


原文:https://www.a8q9.cn/en/article/the-const-deception-ee69fb.html

相关文章