8 kyu
Hello, Name or World!
15,603 of 34,635tadan
Description:
Define a method hello
that returns
"Hello, Name!" to a given name
, or says Hello, World! if name is not given (or passed as an empty String).
Assuming that name
is a String
and it checks for user typos to return a name with a first capital letter (Xxxx).
Examples:
* With `name` = "john" => return "Hello, John!"
* With `name` = "aliCE" => return "Hello, Alice!"
* With `name` not given
or `name` = "" => return "Hello, World!"
Fundamentals
Similar Kata:
Stats:
Created | Sep 22, 2016 |
Published | Sep 22, 2016 |
Warriors Trained | 57156 |
Total Skips | 3200 |
Total Code Submissions | 142166 |
Total Times Completed | 34635 |
JavaScript Completions | 15603 |
Ruby Completions | 914 |
F# Completions | 170 |
Python Completions | 14539 |
Crystal Completions | 18 |
CoffeeScript Completions | 24 |
C Completions | 481 |
TypeScript Completions | 814 |
PHP Completions | 1452 |
Rust Completions | 697 |
C# Completions | 760 |
COBOL Completions | 19 |
Total Stars | 383 |
% of votes with a positive feedback rating | 89% of 3403 |
Total "Very Satisfied" Votes | 2769 |
Total "Somewhat Satisfied" Votes | 504 |
Total "Not Satisfied" Votes | 130 |
Total Rank Assessments | 116 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |