<html>
<head>
<title>Prototype Chaining Example 3</title>
<script type="text/javascript">
function SuperType(){
this.property = true;
}
SuperType.prototype.getSuperValue = function(){
return this.property;
};
function SubType(){
this.subproperty = false;
}
//inherit from SuperType
SubType.prototype = new SuperType();
//try to add new methods this nullifies the previous line