Today I completed the Opposites Attract Kata on Codewars!

When I looked at the code and what I had to do, it was simple to set the even/odd number condition in one line. When I ran the code to see if I had the solution, it worked!

The even/odd number condition:

if (param1 % 2 === 0) {
// do something
}

Bug Zero Icon

OUR NEWSLETTER