Today I completed the “Welcome!” kata on Codewars! I started by creating a database(hash) of languages and their welcome statements. Then I used the in keyword to check if the specified language was part of the database, and output the corresponding welcome message. Here is the final code!

Bug Zero Icon

OUR NEWSLETTER