История изменений
Исправление goingUp, (текущая версия) :
Вот вам поэма на js (какую мы заслужили) от ChatGPT
const TheRoad = {};
TheRoad.NotTaken = function() {};
TheRoad.NotTaken.prototype.by = function(author) {
console.log("By " + author);
};
TheRoad.NotTaken.prototype.twoRoads = function() {
console.log("Two roads diverged in a yellow wood,");
};
TheRoad.NotTaken.prototype.and = function() {
console.log("And sorry I could not travel both");
};
TheRoad.NotTaken.prototype.beOne = function() {
console.log("And be one traveler, long I stood");
};
TheRoad.NotTaken.prototype.lookedDown = function() {
console.log("And looked down one as far as I could");
};
TheRoad.NotTaken.prototype.toWhere = function() {
console.log("To where it bent in the undergrowth;");
};
const poem = new TheRoad.NotTaken();
poem.by("Robert Frost");
poem.twoRoads();
poem.and();
poem.beOne();
poem.lookedDown();
poem.toWhere();
Исходная версия goingUp, :
Вот вам поэма на js (какую мы заслужили) от ChatGPT
const TheRoad = {};
TheRoad.NotTaken = function() {};
TheRoad.NotTaken.prototype.by = function(author) {
console.log("By " + author);
};
TheRoad.NotTaken.prototype.twoRoads = function() {
console.log("Two roads diverged in a yellow wood,");
};
TheRoad.NotTaken.prototype.and = function() {
console.log("And sorry I could not travel both");
};
TheRoad.NotTaken.prototype.beOne = function() {
console.log("And be one traveler, long I stood");
};
TheRoad.NotTaken.prototype.lookedDown = function() {
console.log("And looked down one as far as I could");
};
TheRoad.NotTaken.prototype.toWhere = function() {
console.log("To where it bent in the undergrowth;");
};
const poem = new TheRoad.NotTaken();
poem.by("Robert Frost");
poem.twoRoads();
poem.and();
poem.beOne();
poem.lookedDown();
poem.toWhere();