Posts Tagged ‘constructor’

只做题,先不说话

已知:
var str = “string”;
var Fn = function() {var i;};
var f = new Fn();
下面的语句执行结果,你能说对几个?
1. str.__proto__
2. str.prototype
3. str.constructor
4. str.__proto__.constructor
5. Fn.__proto__
6. Fn.prototype
7. Fn.constructor
8. Fn.__proto__.constructor
9. Fn.__proto__.__proto__
10. f.__proto__
11. f.prototype
[...]

Read the rest of this entry »