I think objects are referential (like a pointer in other languages) so the const is the reference to that object. At least that is what I tell myself so I can sleep at night 🤣
I wrote a mini-post describing how references in JS work with objects. By walking through a simple example, it shows that a variable can't reference another variable.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.