All pastes #946699 Raw Edit

Something

public javascript v1 · immutable
·published 2008-03-17 21:32 UTC
rendered paste body
        <script type="text/javascript">            function start() {                function ClassA() {                    var i = 20;                }                function ClassB() {                    var j = 20;                }                                ClassB.prototype = new ClassA();                                alert(ClassB.prototype instanceof ClassA); // false                alert(ClassA.prototype instanceof ClassB); // false                alert(ClassA isntanceof ClassB);  // false                alert(ClassB instanceof ClassA);  // false            }        </script>