Today I completed the “The highest profit wins!” kata on Codewars!

I had to make an array that returns the largest and smallest numbers from a provided array. Not knowing how to do this, I looked up suggestions and found Math.min.apply and Math.max.apply. Using these two, I wrote a simple return statement and it worked!

When you don’t know how to do something, look up a guide to help you!

Bug Zero Icon

OUR NEWSLETTER