How to get UUID in your JavaScript code quickly
Jan 10, 2023
Hi guys!
Sometimes we need to make some variables like ID in our project.
Get Roman Meshcheriakov’s stories in your inbox
Join Medium for free to get updates from this writer.
How we can do these?
let uuid = self.crypto.randomUUID();
console.log(uuid); // for example "36b8f84d-df4e-4d49-b662-bcde71a8764f"Happy hacking! 😊







