1
2
3
function Test() {
4
}
5
6
Test.prototype.getParent = function() {
7
return parent;
8
9
10
Test.prototype.getChild0 = function() {
11
return children[0];
12
13