News for hackers. Stuff that matters.
Re:The "Const" Deception (2023) by splash123 on Sunday September 08, 2024 @11:37PM (#41485229)
In other programming languages, it's "by value" vs. "by reference."

One of the most confusing parts of dealing with immutability in JavaScript is understanding the array methods. "Officially", some of them are mutating, e.g., `.sort()`, while others create and return a copy, e.g., `.slice()`.

It makes the 10-day rumor more convincing though.

There are no comments on this comment yet.