2

誰かがこれを見て、なぜprototype.placeingがコンソールロギングではないのかを理解するのを手伝ってもらえますか? ご協力ありがとうございました:

(function() {
   function Rider(name) {
       this.name = name;
       this.show = function(showName) {
           console.log(this.name + " rode in the " + showName);
       };
   }

    var riderOne = new Rider("Billy Bobb");
    riderOne.show("Summer Show");

    Rider.prototype.placing = function(place) {
        console.log(this.rider + " ended up in " + place + " at " +
                this.showName);
    }
})();
4

1 に答える 1