Create an If Statement which uses 2 criteria to sort serial numbers in javascript?
I'm currently beginning a Javascript coding course. One task requires me to check if a serial number is valid, and if it is, add it to an array to store all valid serial numbers. The serial numbers must be: odd…