What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-01 00:30:17
unique code generator javascript
var ID = function () { // Math.random should be unique because of its seeding algorithm. // Convert it to base 36 (numbers + letters), and grab the first 9 characters // after the decimal. return '_' + Math.random().toString(36).substr(2, 9); }; Add solution