Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
laurencerowe
· 7y ago · 0 comments
A const declaration only ensures that the variable always points to the same object, not that that object is immutable. For instance in JS:
const foo = {};
foo.bar = 1;
Comments
[–]
snrji
7y ago
That depends on the language.