ReadonlymodeThe mode read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
ReadonlynameThe 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.
The
Lockinterface of the Web Locks API provides the name and mode of a lock. Available only in secure contexts.MDN Reference