var grandParent = function(){
    this.f = function(){
        console.log("HI");
    };
}

grandParent.parent.f = function(){
        console.log("HELLO");
    };


로 선언하면 f를 아무리 불러대도 생성자의 f만 호출합니다.


하지만


grandParent.parent.d = function(){
        console.log("HELLO");
    };

로 프로토타입을 만들어주고 객체를 생성하면


f,d 둘다호출이 되네요.


그럼 동일 이름의 프로퍼티가 생성자와 프로토타입에 있으면 생성자에 있는 프로퍼티를 우선적으로 사용하는건가요?