2020年2月23日 星期日

[Javascript] What is Prototype?

Function's prototype

It is the object instance that will become the prototype for all objects created using this function as a constructor.

Object's prototype

It is the object instance from which the object is inherited.

沒有留言:

張貼留言