자바스크립트에서는 함수또한 객체이기때문에 property를 가질 수 있다.
그렇다면 함수에서 constructor나 prototype함수를 만들때 무슨일이 일어나는지 알아보자.
먼저 Person이란 함수를 만들면 Person이라는 객체와 Person's prototype 두개가 만들어진다.
Person 객체에는 prototype을 포함하고 있는데 이는 Person's prototype을 가리킨다.
kim을 만들면 __proto__가 만들어진다. 즉, Person과 link되었음을 뜻한다. __proto__는 Person's prototype을 뜻하므로 kim은 Person's prototype와 연결된다.
출처:생활코딩 JavaScript Object Oriented Programming
https://www.youtube.com/watch?v=wT1Bl5uV27Y&list=PLuHgQVnccGMAMctarDlPyv6upFUUnpSO3&index=26