Created
December 11, 2022 17:18
-
-
Save Vigowebs/e3fd7d6290ae7e9f65cb9de086ad0e9e to your computer and use it in GitHub Desktop.
Generate Unique id using JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generateUniqueId = () => { | |
return Math.random().toString(36).substring(2) | |
} | |
generateUniqueId(); //7pvib9simcl | |
generateUniqueId(); //3aakkolzsu8 | |
generateUniqueId(); //ligt7dtz83h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment