The isSecureContext read-only property of the Window interface returns a boolean indicating whether the current context is secure (true) or not (false).
isSecureContext
Window
true
false
A boolean.