Header Ads

Generate Unique Key Using JavaScript

Genearte unique key using these simple lines of code in JavaScript
Generate Unique Key Using JavaScript
  const uuid = () => {
  const val1 = Date.now().toString(36);
  const val2 = Math.random().toString(36).substr(2);
  return val1 + val2;
}
uuid();

No comments:

Powered by Blogger.