← Stop importing `uuid`. `crypto.randomUUID()` has been native since 2021.Quiz

crypto.randomUUID() — native UUID generation

crypto.randomUUID() generates a v4 UUID natively in browsers and Node.js with no library required. These questions cover what version of UUID it produces, where its randomness comes from, which environments support it, what it cannot do, and how it compares to the uuid npm package.

questions9
pass mark70%
resultsat the end

No account needed. Answer all 9 questions, then see your score with every answer explained and a reference to the spec or MDN — pass and you can claim a certificate.