코딩/JavaScript

6자리 랜덤 인증번호 생성

춘 몽 2024. 2. 24. 12:01
728x90
let result = String(Math.floor(Math.random()*1000000)).padStart(6,"0")
728x90