Recently, I've been exploring the concept of creating new objects in JavaScript. It's interesting to note that in JS, every object creation is dynamic. This allows you to create an object and then add properties later on. Even fields created in the constructor are dynamic.
In many other languages, object structures are fixed and you can't add anything to an object after creation. So my question is, why are fields written in the constructor dynamically created in JavaScript?