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
You can't make a parameter const. Use it as the initial value of a local variable:
const
function constParam(a) { const const_a = a; ... }
Note also that const is only supported in Internet Explorer as of IE11. See this compatibility table