📅  最后修改于: 2022-03-11 15:01:27.383000             🧑  作者: Mango
function iqTest(parOuImpar){
let splitArray = parOuImpar.split(" ")
for (let index = 0; index < splitArray.length; index++) {
if((splitArray[index] % 2) == 1) {
return splitArray[index]
}
}
}
console.log(iqTest("2 4 7 8 10"))
console.log(iqTest("1 2 2"))