Variables declared using
const
are not immutableUsing
const
only means that the variable will always have a reference to the same object or primitive value, because that reference can’t change.2m 5
const
are not immutableUsing const
only means that the variable will always have a reference to the same object or primitive value, because that reference can’t change.