RIGHT!!! I thought I had finally found the most basic way to the solution with a ternary operator. But that good ole 'truthy' statement....lol
Why are you checking for 4? This problem doesn't treat 4-element arrays any special way.
if(numbers.length >= 2) // not getting why it worked with this and not if(numbers.length >= 4)
Loading collection data...
RIGHT!!! I thought I had finally found the most basic way to the solution with a ternary operator. But that good ole 'truthy' statement....lol
Why are you checking for 4? This problem doesn't treat 4-element arrays any special way.
if(numbers.length >= 2) // not getting why it worked with this and not if(numbers.length >= 4)