Home > Article > Web Front-end > A brief discussion on Function and Object_javascript techniques in Javascript
Function
A function is an object, and the object representing the function is a function object. All function objects are constructed from the Function object. In other words, Function is the top-level constructor. It constructs all objects in the system, including user-defined objects, system built-in objects, and even itself.
Object
Object is the top-level object. All objects will inherit the prototype of Object. You must also know that Object is also a function object, so Object is constructed by Function.
Function and Object relationship diagram:
Friends, you can refer to the relationship diagram in the picture below when reading the code. I hope you like it.