- <script>
- function A() {}
- alert(A.prototype.constructor);
- A.prototype.f = 5;
- var b = new A();
- alert(b.f);
- alert(b.__proto__.f);
- alert(b.prototype);
- alert(A.prototype.f);
- alert(A.__proto__.f);
- alert(b.constructor.prototype.f);
- A.prototype.f = 6;
- alert(b.f);
- b.f = 7;
- alert(b.f);
- alert(b.__proto__.f);
- b.f = undefined;
- alert(b.f);
- delete(b.f);
- alert(b.f);
- </script>