[JS] use date. Now(). Tostring() to generate serial number

Date. Now() returns the number of milliseconds from 00:00:00 (UTC) on January 1, 1970 to the current time.

console.log(Date.now());
output: 1623740295900
type is number,
tostring() method returns string type.

Read More: