broken-greetings

1.0.0 • Public • Published

JAVASCRIPT KATA : Broken Greetings !

Description:

Correct this code, so that the greet function returns the expected value.

function Person(name){
  this.name = name;
}

Person.prototype.greet = function(otherName){
  return "Hi " + otherName + ", my name is " + name;
}

Solution : solution.js

Source : codewars

/broken-greetings/

    Package Sidebar

    Install

    npm i broken-greetings

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • ouadie