Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@deprecated_ii Apologies for the long post.
=================================
What if it was a " i % 2 != 0 " inside the if statement? Would that have been ok? That way you'd only need one avaluation structure to fetch the odd numbers from the array.
Unless the library already has a built in function to do this like an "array.nOdd(i)" that could be assigned to a new array.
What would've been your answer to clean up this code? I don't know how to code, but I would like learn about this stuff from the opinion of people that do know.