broken-greetings
v1.0.0
Published
Javascript kata to correct a greet function
Downloads
2
Readme
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