JS Built-ins
cryptobeginner

crypto β€” UUID has length 36

πŸ“– Usage Example
const id = crypto.randomUUID()
id.length  // β†’ 36

A UUID is always 36 characters including the four hyphens.

crypto.randomUUID() β€” string length

A UUID string has a fixed length of 36 characters (including dashes): xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

Challenge: Verify that a UUID string has length 36.

πŸ’‘ Hints (1)
  • β€’ UUID format is 8-4-4-4-12 hex digits separated by dashes