What is the difference between the method on the prototype and the method of the constructor?

for example, the constructor has a test () method, and there is also a test (), on the prototype. Is there any difference between the two methods?

Aug.01,2021

just look for it in a different order. First, you can't find it by yourself, and then you can't find it from the prototype. If you can't find it on the prototype, you can find it from the prototype and form the prototype chain

.
Menu