Today I completed the “Xs and Os” kata on Codewars! I began by initializing the variables. Then I created a for loop that counts the x’s and o’s and ignores the other characters. Finally, it outputs whether there is an equal amount of each. This is the final code I came up with!

 

Bug Zero Icon

OUR NEWSLETTER