JavaScript Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.21

Using Functions as "Function" Objects

This chapter provides introductions and tutorial examples on functions as objects. Topics include the built-in object type 'Function', creating functions using the 'Function()' constructor, function instance and inherited properties and methods, 'function' statement and operator.

Functions Are Objects of the "Function" Type

Using the Function Constructor

Function Object Inherited Properties and Methods

Function Object Instance Properties

Creating Function Objects with "function" Statements

Creating Function Objects with the "function" Operator

Comparing 3 Ways of Creating Functions

Table of Contents

 About This JavaScript Tutorial Example Book

 Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

 Web Browser Supporting JavaScript

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

 'jrunscript' - JavaScript Shell Command from JDK

Using Functions as "Function" Objects

 Introduction to Built-in Object Types

 W3C's Document Object Model (DOM) Specifications

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2013
Using Functions as "Function" Objects