JavaScript:实现获取 Collatz 序列长度算法 const getCollatzSequenceLength = (num, seqLength) => { if (num === 1) { return