It has never been clear about early binding and late binding. After reading the description on w3school, I thought it was simple, clear, and easy to understand.
Binding is a method that combines object interfaces with object instances. Early binding refers to defining its attributes and methods before instantiating an object, so that the compiler or interpretationProgramSwitch machines in advanceCode. In languages such as Java and Visual Basic, with early binding, you can use intelliisense in the development environment (that is, to provide developers with the attribute and method list functions of objects ). Ecmascript is not a strong language and cannot be bound early.
On the other hand, late binding means that the compiler or interpreter does not know the object type before running. Late binding does not require you to check the object type. You only need to check whether the object supports attributes and methods. All variables in ecmascript use the late binding method. In this way, a large number of object operations are allowed without any penalty.