const
is a guard against reassigning the value of the reference within the same scope.
From MDN
It does not mean the value it holds is immutable, just that the variable identifier cannot be reassigned.
Also
A constant cannot share its name with a function or a variable in the same scope.