6 kyu
Ho Ho Ho with Functions!
1,487 of 2,020BattleRattle
Description:
Santa is learning programming. And what could be the first program, he wants to write? Yes, the "Hello world!" of Christmas: "Ho Ho Ho!". He wants to write a function ho()
, which should have the following return values:
ho(); // should return "Ho!"
ho(ho()); // should return "Ho Ho!"
ho(ho(ho())); // should return "Ho Ho Ho!"
Unfortunately he couldn't find any tutorial, which explains, how he could implement that. Can you help him?
Rules:
- each call of
ho()
must add a "Ho" to the string - the "Ho"'s must be separated by a space
- at the end of the string, there must be an exclamation mark (
!
), without a space
Algorithms
Similar Kata:
Stats:
Created | Dec 16, 2013 |
Published | Dec 16, 2013 |
Warriors Trained | 2869 |
Total Skips | 171 |
Total Code Submissions | 5578 |
Total Times Completed | 2020 |
JavaScript Completions | 1487 |
CoffeeScript Completions | 88 |
Ruby Completions | 478 |
Total Stars | 49 |
% of votes with a positive feedback rating | 92% of 227 |
Total "Very Satisfied" Votes | 194 |
Total "Somewhat Satisfied" Votes | 29 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 8 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |