SOURCE

function even_or_odd(n, evenList, oddList) {
    if (n % 2 === 0) {
        evenList.push(n);
    }
    else {
        oddList.push(n);
    }
};
function compute(total) {
    var evenList = [];
    var oddList = [];
    for (var i = 1; i <= total; i++) {
        even_or_odd(i, evenList, oddList)
    };
    console.log(oddList)
    console.log(evenList)
}
compute(73)
console 命令行工具 X clear

                    
>
console