The Lock interface of the Web Locks API provides the name and mode of a lock. Available only in secure contexts.
Lock
MDN Reference
The mode read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
mode
The name read-only property of the Lock interface returns the name passed to The name of a lock is passed by script when the lock is requested.
name