ouadie-lahdioui / broken-greetings

Javascript kata to correct a greet function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Javascript kata to correct a greet function.


Languages

Language:JavaScript 100.0%