Preview:
function getRandom10CharString() {
    const timestamp = Date.now().toString(36); // Convert timestamp to base 36
    const randomString = Math.random().toString(36).substr(2); // Generate a random base 36 string
    const combinedString = timestamp + randomString; // Combine the two strings
    return combinedString.substr(0, 10); // Return the first 10 characters
}

console.log(getRandom10CharString());
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter