Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / JavaScript

crypto.randomUUID()

Generates an RFC 4122 version 4 compliant random UUID string.

Syntax
crypto.randomUUID()

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working crypto.randomUUID() usage example
// Example for crypto.randomUUID()
// Standard verified syntax construct
console.log('crypto.randomUUID() initialized');
Standard JavaScript language feature verified across modern versions.