Sum Arrays – Codewars

Sum Arrays – Codewars

Today I completed the “Sum arrays” kata on Codewars! I started by making a for loop that runs through the contents of a given array. Then I defined a sum variable that adds all of the values together. Here is the final code!

“Welcome!” – Codewars

“Welcome!” – Codewars

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