LINUX.ORG.RU

История изменений

Исправление fsb4000, (текущая версия) :

function x (str) {
    return "hello " + str;
}

x.bye = function (str) {
  return "Good Bye" + str;
};

console.log(x("me"));
console.log(x.bye("me"));

Исходная версия fsb4000, :

function x (str) {
    return "Hello World";
}

x.bye = function (str) {
  return "Good Bye";
};

console.log(x("me"));
console.log(x.bye("me"));