function f2(){
var f=(){}
var test=new f();
console.log(test instanceof f);//true
console.log((f.prototype===test.__proto__));true
}
函数对象
var f2=new Function('str','console.log(str)')
f3(){}
普通对象
var o= Object();
var o2={}
var o3=new f()
// Object();
console.log(f.prototype);Object {}
console.log(o.prototype);undefined
var person=(){}
var person1=new person();
(){}
person.name1='js'
console.log(person.name1)js
var person= (){};
person.name1= 122;
console.log(person.name1);
person();
console.log(person1.name1);undefined
;
//使用prototype对象为对象添加属性,这样所以的实例都会有此属性
person.prototype.name1='12'12