<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Title</title></head><body><script>
function Person(){}
console.dir(Person);//既是函数也是对象
console.dir(Math);//对象
function F1(){}
console.dir(F1);//里面有__proto__
console.log(F1.__proto__==Function.prototype);//true</script></body></html>
数组的函数调用
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Title</title></head><body><script>//数组中可以存储任意类型的数据
var arr=[
function (){
console.log("see");},
function (){
console.log("you");},
function (){
console.log("again");}]
arr.forEach(function (element){element();})</script></body></html>