Home  >  Article  >  Web Front-end  >  A brief discussion on Function and Object_javascript techniques in Javascript

A brief discussion on Function and Object_javascript techniques in Javascript

WBOY
WBOYOriginal
2016-05-16 16:18:021331browse

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:

Copy code The code is as follows:


Friends, you can refer to the relationship diagram in the picture below when reading the code. I hope you like it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn