3 ms·
> 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-c
by _getify 11y 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.
- AgentME 11y agoConst usage prevents a bug in my example directly above!