Hacker News new | ask | show | jobs
by _getify 3939 days ago
> 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.

1 comments

Const usage prevents a bug in my example directly above!