Today I completed the Friend or Foe? Kata on Codewars!
 
It was simple to make a loop to run through each name in the array. All I had to do afterward was to check if the length of the name is equal to 4 and if so, to add it to the “mini-array.” After that, the “mini-array” was printed.
Bug Zero Icon

OUR NEWSLETTER