Re:Constantly Confusing ‘const’
by _getify on Tuesday September 08, 2015 @07:47PM
(#10188857)
> If you pass a reference to the x array to a function
This notion (concern) is meaningless in JS, since when you pass any reference, it's always a reference-copy, so there's no value nor assistance that `const` provides.
This notion (concern) is meaningless in JS, since when you pass any reference, it's always a reference-copy, so there's no value nor assistance that `const` provides.