Here I made two objects; one has accessor methods created in the constructor, the other in the prototype. Why would one choose one of these over the other?
f
With the second version you end up with a cleaner "constructor".