let randomNum = Math.floor(Math.random() * 1000000); let code = String(randomNum).padStart(6, '0'); return code;
[Error] Unhandled Promise Rejection: TypeError: o8().findLast is not a function. (In 'o8().findLast(t=>e.inputIndex===t.inputIndex)', 'o8().findLast' is undefined) Z (960.4288d6c7d8a2073d.js:1:4944) G (960.4288d6c7d8a2073d.js:1:4052) j (960.4288d6c7d8a2073d.js:1:2582) (anonymous function) (960.4288d6c7d8a2073d.js:1:206131) asyncFunctionResume (anonymous function) promiseReactionJobWithoutPromise [Error] Unhandled Promise Rejection: TypeError: o8().findLast is not a function. (In 'o8().findLast(t=>e.inputIndex===t.inputIndex)', 'o8().findLast' is undefined) Z (960.4288d6c7d8a2073d.js:1:4944) G (960.4288d6c7d8a2073d.js:1:4052) j (960.4288d6c7d8a2073d.js:1:2582) (anonymous function) (960.4288d6c7d8a2073d.js:1:206131) asyncFunctionResume (anonymous function) promiseReactionJobWithoutPromise