What I want to do is to use as many immutable variables as possible, thus reducing the number of moving parts in my code. I want to use \"var\" and \"let\" only when it\'s n
There is no way to force a parameter to be immutable in JavaScript. You have to keep track of that yourself.
Just write in a style where you happen not to mutate variables. The fact that the language doesn't provide any facilities to force you to do so doesn't mean that you can't still do it anyway.